| org.eclipse.ui.dialogs.ContainerSelectionDialog
ContainerSelectionDialog | public class ContainerSelectionDialog extends SelectionDialog (Code) | | A standard selection dialog which solicits a container resource from the user.
The getResult method returns the selected container resource.
This class may be instantiated; it is not intended to be subclassed.
Example:
ContainerSelectionDialog dialog =
new ContainerSelectionDialog(getShell(), initialSelection, allowNewContainerName(), msg);
dialog.open();
Object[] result = dialog.getResult();
|
Constructor Summary | |
public | ContainerSelectionDialog(Shell parentShell, IContainer initialRoot, boolean allowNewContainerName, String message) Creates a resource container selection dialog rooted at the given resource.
All selections are considered valid. |
Method Summary | |
protected void | configureShell(Shell shell) | protected Control | createDialogArea(Composite parent) | protected void | okPressed() The ContainerSelectionDialog implementation of this
Dialog method builds a list of the selected resource containers
for later retrieval by the client and closes this dialog. | public void | setValidator(ISelectionValidator validator) Sets the validator to use. | public void | showClosedProjects(boolean show) Set whether or not closed projects should be shown
in the selection dialog. |
statusMessage | Label statusMessage(Code) | | |
validator | ISelectionValidator validator(Code) | | |
ContainerSelectionDialog | public ContainerSelectionDialog(Shell parentShell, IContainer initialRoot, boolean allowNewContainerName, String message)(Code) | | Creates a resource container selection dialog rooted at the given resource.
All selections are considered valid.
Parameters: parentShell - the parent shell Parameters: initialRoot - the initial selection in the tree Parameters: allowNewContainerName - true to enable the user to type ina new container name, and false to restrict the user to justselecting from existing ones 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) | | |
okPressed | protected void okPressed()(Code) | | The ContainerSelectionDialog implementation of this
Dialog method builds a list of the selected resource containers
for later retrieval by the client and closes this dialog.
|
setValidator | public void setValidator(ISelectionValidator validator)(Code) | | Sets the validator to use.
Parameters: validator - A selection validator |
showClosedProjects | public void showClosedProjects(boolean show)(Code) | | Set whether or not closed projects should be shown
in the selection dialog.
Parameters: show - Whether or not to show closed projects. |
|
|