| org.eclipse.ui.internal.ide.ChooseWorkspaceDialog
All known Subclasses: org.eclipse.ui.internal.ide.ChooseWorkspaceWithSettingsDialog,
ChooseWorkspaceDialog | public class ChooseWorkspaceDialog extends TitleAreaDialog (Code) | | A dialog that prompts for a directory to use as a workspace.
|
Constructor Summary | |
public | ChooseWorkspaceDialog(Shell parentShell, ChooseWorkspaceData launchData, boolean suppressAskAgain, boolean centerOnMonitor) Create a modal dialog on the arugment shell, using and updating the
argument data object. |
Method Summary | |
protected void | cancelPressed() Notifies that the cancel button of this dialog has been pressed.
The Dialog implementation of this framework method sets
this dialog's return code to Window.CANCEL
and closes the dialog. | protected void | configureShell(Shell shell) Configures the given shell in preparation for opening this window
in it.
The default implementation of this framework method
sets the shell's image and gives it a grid layout. | protected Control | createDialogArea(Composite parent) Creates and returns the contents of the upper part of this dialog (above
the button bar). | protected IDialogSettings | getDialogBoundsSettings() | protected Point | getInitialLocation(Point initialSize) | protected String | getWorkspaceLocation() Get the workspace location from the widget. | protected void | okPressed() Notifies that the ok button of this dialog has been pressed.
The Dialog implementation of this framework method sets
this dialog's return code to Window.OK
and closes the dialog. | public void | prompt(boolean force) Show the dialog to the user (if needed). |
ChooseWorkspaceDialog | public ChooseWorkspaceDialog(Shell parentShell, ChooseWorkspaceData launchData, boolean suppressAskAgain, boolean centerOnMonitor)(Code) | | Create a modal dialog on the arugment shell, using and updating the
argument data object.
Parameters: parentShell - the parent shell for this dialog Parameters: launchData - the launch data from past launches Parameters: suppressAskAgain - true means the dialog will not have a "don't ask again" button Parameters: centerOnMonitor - indicates whether the dialog should be centered on the monitor or according to it's parent if there is one |
cancelPressed | protected void cancelPressed()(Code) | | Notifies that the cancel button of this dialog has been pressed.
The Dialog implementation of this framework method sets
this dialog's return code to Window.CANCEL
and closes the dialog. Subclasses may override if desired.
|
configureShell | protected void configureShell(Shell shell)(Code) | | Configures the given shell in preparation for opening this window
in it.
The default implementation of this framework method
sets the shell's image and gives it a grid layout.
Subclasses may extend or reimplement.
Parameters: shell - the shell |
createDialogArea | protected Control createDialogArea(Composite parent)(Code) | | Creates and returns the contents of the upper part of this dialog (above
the button bar).
The Dialog implementation of this framework method creates
and returns a new Composite with no margins and spacing.
Parameters: parent - the parent composite to contain the dialog area the dialog area control |
getDialogBoundsSettings | protected IDialogSettings getDialogBoundsSettings()(Code) | | |
getInitialLocation | protected Point getInitialLocation(Point initialSize)(Code) | | |
getWorkspaceLocation | protected String getWorkspaceLocation()(Code) | | Get the workspace location from the widget.
String |
okPressed | protected void okPressed()(Code) | | Notifies that the ok button of this dialog has been pressed.
The Dialog implementation of this framework method sets
this dialog's return code to Window.OK
and closes the dialog. Subclasses may override.
|
prompt | public void prompt(boolean force)(Code) | | Show the dialog to the user (if needed). When this method finishes,
#getSelection will return the workspace that should be used (whether it
was just selected by the user or some previous default has been used.
The parameter can be used to override the users preference. For example,
this is important in cases where the default selection is already in use
and the user is forced to choose a different one.
Parameters: force - true if the dialog should be opened regardless of the value ofthe show dialog checkbox |
|
|