| org.eclipse.ui.dialogs.SelectionDialog org.eclipse.ui.dialogs.ListSelectionDialog
All known Subclasses: org.eclipse.ui.dialogs.YesNoCancelListSelectionDialog,
ListSelectionDialog | public class ListSelectionDialog extends SelectionDialog (Code) | | A standard dialog which solicits a list of selections from the user.
This class is configured with an arbitrary data model represented by content
and label provider objects. The getResult method returns the
selected elements.
This class may be instantiated; it is not intended to be subclassed.
Example:
ListSelectionDialog dlg =
new ListSelectionDialog(
getShell(),
input,
new BaseWorkbenchContentProvider(),
new WorkbenchLabelProvider(),
"Select the resources to save:");
dlg.setInitialSelections(dirtyEditors);
dlg.setTitle("Save Resources");
dlg.open();
|
Constructor Summary | |
public | ListSelectionDialog(Shell parentShell, Object input, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String message) Creates a list selection dialog. |
Method Summary | |
protected void | configureShell(Shell shell) | protected Control | createDialogArea(Composite parent) | protected CheckboxTableViewer | getViewer() Returns the viewer used to show the list. | protected void | okPressed() The ListSelectionDialog implementation of this
Dialog method builds a list of the selected elements for later
retrieval by the client and closes this dialog. |
listViewer | CheckboxTableViewer listViewer(Code) | | |
ListSelectionDialog | public ListSelectionDialog(Shell parentShell, Object input, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String message)(Code) | | Creates a list selection dialog.
Parameters: parentShell - the parent shell Parameters: input - the root element to populate this dialog with Parameters: contentProvider - the content provider for navigating the model Parameters: labelProvider - the label provider for displaying model elements Parameters: message - the message to be displayed at the top of this dialog, ornull to display a default message |
configureShell | protected void configureShell(Shell shell)(Code) | | |
createDialogArea | protected Control createDialogArea(Composite parent)(Code) | | |
getViewer | protected CheckboxTableViewer getViewer()(Code) | | Returns the viewer used to show the list.
the viewer, or null if not yet created |
okPressed | protected void okPressed()(Code) | | The ListSelectionDialog implementation of this
Dialog method builds a list of the selected elements for later
retrieval by the client and closes this dialog.
|
|
|