Class PathEditor


  • public class PathEditor
    extends ListEditor
    A field editor to edit directory paths.
    • Constructor Detail

      • PathEditor

        protected PathEditor()
        Creates a new path field editor
      • PathEditor

        public PathEditor​(java.lang.String name,
                          java.lang.String labelText,
                          java.lang.String dirChooserLabelText,
                          Composite parent)
        Creates a path field editor.
        Parameters:
        name - the name of the preference this field editor works on
        labelText - the label text of the field editor
        dirChooserLabelText - the label text displayed for the directory chooser
        parent - the parent of the field editor's control
    • Method Detail

      • createList

        protected java.lang.String createList​(java.lang.String[] items)
        Description copied from class: ListEditor
        Combines the given list of items into a single string. This method is the converse of parseString.

        Subclasses must implement this method.

        Specified by:
        createList in class ListEditor
        Parameters:
        items - the list of items
        Returns:
        the combined string
        See Also:
        ListEditor.parseString(java.lang.String)
      • getNewInputObject

        protected java.lang.String getNewInputObject()
        Description copied from class: ListEditor
        Creates and returns a new item for the list.

        Subclasses must implement this method.

        Specified by:
        getNewInputObject in class ListEditor
        Returns:
        a new item
      • parseString

        protected java.lang.String[] parseString​(java.lang.String stringList)
        Description copied from class: ListEditor
        Splits the given string into a list of strings. This method is the converse of createList.

        Subclasses must implement this method.

        Specified by:
        parseString in class ListEditor
        Parameters:
        stringList - the string
        Returns:
        an array of String
        See Also:
        ListEditor.createList(java.lang.String[])