Class RecordEditorPerspective

java.lang.Object
ca.phon.app.session.editor.RecordEditorPerspective

public class RecordEditorPerspective extends Object
Perspective for record editor docking views. This class is just a pointer to the name and location of where the perspective lives. It also provides methods for managing the list of available perspectives.
  • Field Details

    • DEFAULT_PERSPECTIVE_NAME

      public static final String DEFAULT_PERSPECTIVE_NAME
      See Also:
    • LAST_USED_PERSPECTIVE_NAME

      public static final String LAST_USED_PERSPECTIVE_NAME
      See Also:
    • PERSPECTIVES_FOLDER

      public static final File PERSPECTIVES_FOLDER
  • Constructor Details

    • RecordEditorPerspective

      public RecordEditorPerspective()
    • RecordEditorPerspective

      public RecordEditorPerspective(String name)
    • RecordEditorPerspective

      public RecordEditorPerspective(String name, URL location)
  • Method Details

    • availablePerspectives

      public static RecordEditorPerspective[] availablePerspectives()
      Get the list of available perspectives
    • getStockPerspectives

      public static ResourceLoader<RecordEditorPerspective> getStockPerspectives()
      Get stock perspectives.
      Returns:
      resource loader for stock perspectives
    • getUserPerspectives

      public static ResourceLoader<RecordEditorPerspective> getUserPerspectives()
      Get user perspectives.
      Returns:
      resource loader for user perspectives
    • deletePerspective

      public static void deletePerspective(RecordEditorPerspective perspective)
      Attempt to delete the given perspective
      Parameters:
      perspective -
    • getPerspective

      public static RecordEditorPerspective getPerspective(String name)
      Get the perspective with the given name.
      Parameters:
      name -
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getLocation

      public URL getLocation()
    • setLocation

      public void setLocation(URL location)