public class ShowViewDialog extends Dialog implements org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.IDoubleClickListener
Modifier and Type | Class and Description |
---|---|
class | ShowViewDialog.ViewContentProvider
Provides content for viewers that wish to show Views.
|
class | ShowViewDialog.ViewLabelProvider
Provides labels for viewers that wish to show Views.
|
class | ShowViewDialog.ViewSorter
This is used to sort views in ShowViewDialog.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
ShowViewDialog() |
Modifier and Type | Method and Description |
---|---|
protected void | buttonPressed(int buttonId)
This method is called if a button has been pressed.
|
protected void | cancelPressed()
This method notifies that the cancel button of this dialog has been pressed.
|
protected void | createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
This method adds buttons to this dialog's button bar.
|
protected org.eclipse.swt.widgets.Control | createDialogArea(org.eclipse.swt.widgets.Composite parent)
This method creates a viewer above the button bar.
|
protected org.eclipse.jface.viewers.TreeViewer | createViewer(org.eclipse.swt.widgets.Composite parent)
This method creates a new TreeViewer in the parent.
|
void | doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
This method handles a mouse double click selection.
|
protected java.lang.String | getHelpContextId()
This method retrieves the help context ID.
|
java.lang.Object | getResult()
This method returns an array of org.eclipse.ui.views.IViewDescriptor[].
|
org.eclipse.ui.views.IViewDescriptor[] | getSelection()
This method returns the descriptors for the selected views.
|
protected org.eclipse.jface.viewers.TreeViewer | getTreeViewer()
This method returns the viewer.
|
org.eclipse.ui.views.IViewRegistry | getViewRegistry()
This method returns the Eclipse view registry from the input KEY_VIEW_REGISTRY to be used for gathering available views.
|
void | selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
This method notifies that the selection has changed.
|
protected void | setResult(java.lang.Object result)
This method sets the output as a result of the dialog work.
|
protected void | updateButtons()
This method updates the button enablement state.
|
protected void | updateSelection(org.eclipse.jface.viewers.SelectionChangedEvent event)
This method updates the selection object.
|
public static final java.lang.String COPYRIGHT
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.jface.viewers.TreeViewer createViewer(org.eclipse.swt.widgets.Composite parent)
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
The default implementation of this framework method adds standard ok and cancel buttons using the createButton framework method. Subclasses may override.
protected void buttonPressed(int buttonId)
protected void cancelPressed()
protected void setResult(java.lang.Object result)
public java.lang.Object getResult()
protected java.lang.String getHelpContextId()
public org.eclipse.ui.views.IViewDescriptor[] getSelection()
protected org.eclipse.jface.viewers.TreeViewer getTreeViewer()
public org.eclipse.ui.views.IViewRegistry getViewRegistry()
public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
protected void updateButtons()
protected void updateSelection(org.eclipse.jface.viewers.SelectionChangedEvent event)