Class WorkspaceFileFieldEditor


public class WorkspaceFileFieldEditor extends StringButtonFieldEditor
A field editor for a workspace file path type preference. A workspace file dialog appears when the user presses the change button.
  • Constructor Details

    • WorkspaceFileFieldEditor

      protected WorkspaceFileFieldEditor()
      Creates a new file field editor
    • WorkspaceFileFieldEditor

      public WorkspaceFileFieldEditor(String name, String labelText, Composite parent)
      Creates a file field editor.
      Parameters:
      name - the name of the preference this field editor works on
      labelText - the label text of the field editor
      parent - the parent of the field editor's control
    • WorkspaceFileFieldEditor

      public WorkspaceFileFieldEditor(String name, String labelText, String[] extensions, Composite parent)
      Creates a file field editor.
      Parameters:
      name - the name of the preference this field editor works on
      labelText - the label text of the field editor
      extensions - the file extensions
      parent - the parent of the field editor's control
  • Method Details

    • changePressed

      protected String changePressed()
      Specified by:
      changePressed in class StringButtonFieldEditor
    • checkState

      protected boolean checkState()
      Overrides:
      checkState in class StringFieldEditor
    • setFileExtensions

      public void setFileExtensions(String[] extensions)
      Sets this file field editor's file extension filter.
      Parameters:
      extensions - a list of file extension, or null to set the filter to the system's default value
    • setTooltip

      public void setTooltip(String tooltip)