| org.eclipse.ui.dialogs.SelectionDialog
All known Subclasses: org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog, org.eclipse.ui.dialogs.TypeFilteringDialog, org.eclipse.ui.dialogs.ListDialog, org.eclipse.ui.dialogs.ListSelectionDialog, org.eclipse.ui.internal.dialogs.AbstractWorkingSetDialog, org.eclipse.ui.dialogs.SelectionStatusDialog,
SelectionDialog | abstract public class SelectionDialog extends TrayDialog (Code) | | The abstract implementation of a selection dialog. It can be primed with
initial selections (setInitialSelections ), and returns the
final selection (via getResult ) after completion.
Clients may subclass this dialog to inherit its selection facilities.
|
Constructor Summary | |
protected | SelectionDialog(Shell parentShell) Creates a dialog instance. |
SelectionDialog | protected SelectionDialog(Shell parentShell)(Code) | | Creates a dialog instance. Note that the dialog will have no visual
representation (no widgets) until it is told to open.
Parameters: parentShell - the parent shell |
configureShell | protected void configureShell(Shell shell)(Code) | | |
createButtonsForButtonBar | protected void createButtonsForButtonBar(Composite parent)(Code) | | |
createMessageArea | protected Label createMessageArea(Composite composite)(Code) | | Creates the message area for this dialog.
This method is provided to allow subclasses to decide where the message
will appear on the screen.
Parameters: composite - the parent composite the message label |
getInitialElementSelections | protected List getInitialElementSelections()(Code) | | Returns the list of initial element selections.
List |
getInitialSelections | protected List getInitialSelections()(Code) | | Returns the initial selection in this selection dialog.
the list of initial selected elements or null |
getMessage | protected String getMessage()(Code) | | Returns the message for this dialog.
the message for this dialog |
getOkButton | public Button getOkButton()(Code) | | Returns the ok button.
the ok button or null if the button is not createdyet. |
getResult | public Object[] getResult()(Code) | | Returns the list of selections made by the user, or null
if the selection was canceled.
the array of selected elements, or null if Cancelwas pressed |
isResizable | protected boolean isResizable()(Code) | | |
setDialogBoundsSettings | public void setDialogBoundsSettings(IDialogSettings settings, int strategy)(Code) | | Set the dialog settings that should be used to save the bounds of this
dialog. This method is provided so that clients that directly use
SelectionDialogs without subclassing them may specify how the bounds of
the dialog are to be saved.
Parameters: settings - the IDialogSettings that should be used to store thebounds of the dialog Parameters: strategy - the integer constant specifying how the bounds are saved.Specified using Dialog.DIALOG_PERSISTLOCATIONand Dialog.DIALOG_PERSISTSIZE. since: 3.2 See Also: Dialog.getDialogBoundsStrategy See Also: Dialog.getDialogBoundsSettings |
setInitialElementSelections | public void setInitialElementSelections(List selectedElements)(Code) | | Sets the initial selection in this selection dialog to the given
elements.
Parameters: selectedElements - the List of elements to select |
setInitialSelections | public void setInitialSelections(Object[] selectedElements)(Code) | | Sets the initial selection in this selection dialog to the given
elements.
Parameters: selectedElements - the array of elements to select |
setMessage | public void setMessage(String message)(Code) | | Sets the message for this dialog.
Parameters: message - the message |
setResult | protected void setResult(List newResult)(Code) | | Set the selections made by the user, or null if the
selection was canceled.
Parameters: newResult - list of selected elements, or null if Cancelwas pressed |
setSelectionResult | protected void setSelectionResult(Object[] newResult)(Code) | | Set the selections made by the user, or null if the
selection was canceled.
The selections may accessed using getResult .
Parameters: newResult - -the new values since: 2.0 |
setTitle | public void setTitle(String title)(Code) | | Sets the title for this dialog.
Parameters: title - the title |
|
|