A widget group that displays path variables.
Includes buttons to edit, remove existing variables and create new ones.
since: 2.1
Inner Class :public static class PathVariableElement
Constructor Summary
public
PathVariablesGroup(boolean multiSelect, int variableType) Creates a new PathVariablesGroup.
Parameters: multiSelect - create a multi select tree Parameters: variableType - the type of variables that are displayed in the widget group.
public
PathVariablesGroup(boolean multiSelect, int variableType, Listener selectionListener) Creates a new PathVariablesGroup.
Parameters: multiSelect - create a multi select tree Parameters: variableType - the type of variables that are displayed in the widget group.
Method Summary
public Control
createContents(Composite parent) Creates the widget group.
getEnabled() Returns the enabled state of the group's widgets.
public PathVariableElement[]
getSelection() Returns the selected variables.
the selected variables.
protected void
initializeDialogUnits(Control control) Initializes the computation of horizontal and vertical dialog units
based on the size of current font.
public boolean
performOk() Commits the temporary state to the path variable manager in response to user
confirmation.
public void
setEnabled(boolean enabled) Sets the enabled state of the group's widgets.
Constructor Detail
PathVariablesGroup
public PathVariablesGroup(boolean multiSelect, int variableType)(Code)
Creates a new PathVariablesGroup.
Parameters: multiSelect - create a multi select tree Parameters: variableType - the type of variables that are displayed in the widget group. IResource.FILE and/or IResource.FOLDERlogically ORed together.
PathVariablesGroup
public PathVariablesGroup(boolean multiSelect, int variableType, Listener selectionListener)(Code)
Creates a new PathVariablesGroup.
Parameters: multiSelect - create a multi select tree Parameters: variableType - the type of variables that are displayed in the widget group. IResource.FILE and/or IResource.FOLDERlogically ORed together. Parameters: selectionListener - listener notified when the selection changesin the variables list.
Method Detail
createContents
public Control createContents(Composite parent)(Code)
Creates the widget group.
Callers must call dispose when the group is no
longer needed.
Parameters: parent - the widget parent container of the widgets
Returns the enabled state of the group's widgets.
Returns true if called prior to calling
createContents.
boolean the enabled state of the group's widgets.true if called prior to calling createContents.
Commits the temporary state to the path variable manager in response to user
confirmation.
boolean true if there were no problems. See Also: IPathVariableManager.setValue(StringIPath)
Sets the enabled state of the group's widgets.
Does nothing if called prior to calling createContents.
Parameters: enabled - the new enabled state of the group's widgets