Package org.somox.ui.runconfig.tabs
Class WorkspaceButtonSelectionListener
java.lang.Object
org.eclipse.swt.events.SelectionAdapter
org.somox.ui.runconfig.tabs.WorkspaceButtonSelectionListener
- All Implemented Interfaces:
EventListener
,SelectionListener
,SWTEventListener
This is a helper class that provides a Listener for buttons that dispay a
workspace selection dialog. The dialog can select files, directories or
projects and displays the selected element with a relative of absolute path
in the given text field.
-
Constructor Summary
ConstructorDescriptionWorkspaceButtonSelectionListener
(Text field, boolean selectDirectories, boolean selectProjects, boolean showRelativePath) -
Method Summary
Methods inherited from class org.eclipse.swt.events.SelectionAdapter
widgetDefaultSelected
-
Constructor Details
-
WorkspaceButtonSelectionListener
public WorkspaceButtonSelectionListener(Text field, boolean selectDirectories, boolean selectProjects, boolean showRelativePath) - Parameters:
ownerTab
- the owner: an abstractlaunchconfigurationtab in which the button of the listener is containedfield
- the text field which should contain the selected valueselectDirectories
- true if only directories are selectableselectProjects
- true if only projects are selectableshowRelativePath
- true if the path should be displayed relative to the project
-
-
Method Details
-
widgetSelected
- Specified by:
widgetSelected
in interfaceSelectionListener
- Overrides:
widgetSelected
in classSelectionAdapter
-