Class WorkspaceButtonSelectionListener

java.lang.Object
org.eclipse.swt.events.SelectionAdapter
org.somox.ui.runconfig.tabs.WorkspaceButtonSelectionListener
All Implemented Interfaces:
EventListener, SelectionListener, SWTEventListener

public class WorkspaceButtonSelectionListener extends SelectionAdapter
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 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 contained
      field - the text field which should contain the selected value
      selectDirectories - true if only directories are selectable
      selectProjects - true if only projects are selectable
      showRelativePath - true if the path should be displayed relative to the project
  • Method Details