| |
|
| org.eclipse.ui.dialogs.SelectionDialog org.eclipse.ui.dialogs.SelectionStatusDialog
All known Subclasses: org.eclipse.ui.dialogs.ElementTreeSelectionDialog, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog, org.eclipse.ui.dialogs.AbstractElementListSelectionDialog, org.eclipse.ui.dialogs.CheckedTreeSelectionDialog,
SelectionStatusDialog | abstract public class SelectionStatusDialog extends SelectionDialog (Code) | | An abstract base class for dialogs with a status bar and ok/cancel buttons.
The status message must be passed over as StatusInfo object and can be
an error, warning or ok. The OK button is enabled or disabled depending
on the status.
since: 2.0 |
Constructor Summary | |
public | SelectionStatusDialog(Shell parent) Creates an instance of a SelectionStatusDialog . |
Method Summary | |
abstract protected void | computeResult() Compute the result and return it. | protected void | configureShell(Shell shell) | public void | create() | protected Control | createButtonBar(Composite parent) | public Object | getFirstResult() Returns the first element from the list of results. | protected void | okPressed() | public void | setImage(Image image) Sets the image for this dialog. | protected void | setResult(int position, Object element) Sets a result element at the given position. | public void | setStatusLineAboveButtons(boolean aboveButtons) Controls whether status line appears to the left of the buttons (default)
or above them. | protected void | updateButtonsEnableState(IStatus status) Update the status of the ok button to reflect the given status. | protected void | updateStatus(IStatus status) Update the dialog's status line to reflect the given status. |
SelectionStatusDialog | public SelectionStatusDialog(Shell parent)(Code) | | Creates an instance of a SelectionStatusDialog .
Parameters: parent - |
computeResult | abstract protected void computeResult()(Code) | | Compute the result and return it.
|
configureShell | protected void configureShell(Shell shell)(Code) | | |
create | public void create()(Code) | | |
createButtonBar | protected Control createButtonBar(Composite parent)(Code) | | |
getFirstResult | public Object getFirstResult()(Code) | | Returns the first element from the list of results. Returns null
if no element has been selected.
the first result element if one exists. Otherwise null isreturned. |
okPressed | protected void okPressed()(Code) | | |
setImage | public void setImage(Image image)(Code) | | Sets the image for this dialog.
Parameters: image - the image. |
setResult | protected void setResult(int position, Object element)(Code) | | Sets a result element at the given position.
Parameters: position - Parameters: element - |
setStatusLineAboveButtons | public void setStatusLineAboveButtons(boolean aboveButtons)(Code) | | Controls whether status line appears to the left of the buttons (default)
or above them.
Parameters: aboveButtons - if true status line is placed above buttons; iffalse to the right |
updateButtonsEnableState | protected void updateButtonsEnableState(IStatus status)(Code) | | Update the status of the ok button to reflect the given status. Subclasses
may override this method to update additional buttons.
Parameters: status - |
updateStatus | protected void updateStatus(IStatus status)(Code) | | Update the dialog's status line to reflect the given status. It is safe to call
this method before the dialog has been opened.
Parameters: status - |
|
|
|