| org.eclipse.ui.internal.ide.dialogs.PathVariableDialog
PathVariableDialog | public class PathVariableDialog extends TitleAreaDialog (Code) | | Dialog that prompts the user for defining a variable's name and value. It
supports creating a new variable or editing an existing one. The difference
between the two uses is just a matter of which messages to present to the
user and whether the "Ok" button starts enabled or not.
|
Field Summary | |
final public static int | EXISTING_VARIABLE Constant for defining this dialog as intended to edit an existing
variable (value = 2). | final public static int | NEW_VARIABLE Constant for defining this dialog as intended to create a new variable
(value = 1). |
Constructor Summary | |
public | PathVariableDialog(Shell parentShell, int type, int variableType, IPathVariableManager pathVariableManager, Set namesInUse) Constructs a dialog for editing a new/existing path variable.
Parameters: parentShell - the parent shell Parameters: type - the dialog type: NEW_VARIABLE orEXISTING_VARIABLE Parameters: variableType - the type of variable that can be edited in this dialog. |
EXISTING_VARIABLE | final public static int EXISTING_VARIABLE(Code) | | Constant for defining this dialog as intended to edit an existing
variable (value = 2).
|
NEW_VARIABLE | final public static int NEW_VARIABLE(Code) | | Constant for defining this dialog as intended to create a new variable
(value = 1).
|
PathVariableDialog | public PathVariableDialog(Shell parentShell, int type, int variableType, IPathVariableManager pathVariableManager, Set namesInUse)(Code) | | Constructs a dialog for editing a new/existing path variable.
Parameters: parentShell - the parent shell Parameters: type - the dialog type: NEW_VARIABLE orEXISTING_VARIABLE Parameters: variableType - the type of variable that can be edited in this dialog. IResource.FILE or IResource.FOLDER Parameters: pathVariableManager - a reference to the path variable manager Parameters: namesInUse - a set of variable names currently in use |
configureShell | protected void configureShell(Shell shell)(Code) | | Configures this dialog's shell, setting the shell's text.
See Also: org.eclipse.jface.window.Window.configureShell(Shell) |
createButtonsForButtonBar | protected void createButtonsForButtonBar(Composite parent)(Code) | | Adds buttons to this dialog's button bar.
See Also: org.eclipse.jface.dialogs.Dialog.createButtonsForButtonBar |
createDialogArea | protected Control createDialogArea(Composite parent)(Code) | | Creates and returns the contents of this dialog (except for the button bar).
See Also: org.eclipse.jface.dialogs.TitleAreaDialog.createDialogArea |
getVariableName | public String getVariableName()(Code) | | Returns the variable name.
the variable name |
getVariableValue | public String getVariableValue()(Code) | | Returns the variable value.
the variable value |
isResizable | protected boolean isResizable()(Code) | | |
setVariableName | public void setVariableName(String variableName)(Code) | | Sets the variable name.
Parameters: variableName - the new variable name |
setVariableValue | public void setVariableValue(String variableValue)(Code) | | Sets the variable value.
Parameters: variableValue - the new variable value |
|
|