Class EditorJavaActionActor.Settings

All Implemented Interfaces:
IEditorActionActorSettings, IPropDesigner, EventListener, IGProp<GProp<?>[]>, IPropCnr, IActionActorSettings, Cloneable, org.eclipse.core.runtime.IAdaptable
Enclosing class:
EditorJavaActionActor

public static class EditorJavaActionActor.Settings extends JavaActionActorBase.Settings implements IEditorActionActorSettings
Settings property container.
  • Constructor Details

    • Settings

      public Settings()
      Creates the settings without name.
    • Settings

      public Settings(Atom propertyAtom)
      Creates the settings with specified name.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • getDesigner

      public ActionActorDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IEditorActionActorSettings
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • clone

      Clone must be overridden.
      Overrides:
      clone in class AbstractSettings
    • canGoto

      public boolean canGoto()
      Returns if the actor settings provides a way to go to the element in question.
      Specified by:
      canGoto in interface IEditorActionActorSettings
      Returns:
      true if this is possible.
    • getGotoText

      public String getGotoText()
      Gets the go to text that will be displayed in the UI.
      Specified by:
      getGotoText in interface IEditorActionActorSettings
      Returns:
      A text to be used, null for default.
    • gotoActionActorDefinition

      public void gotoActionActorDefinition(org.eclipse.swt.widgets.Shell shell)
      Goes to the actor definition. Override to provide functionality. This method will only be called if canGoto() returns true.
      Specified by:
      gotoActionActorDefinition in interface IEditorActionActorSettings
      Parameters:
      shell - A shell instance of the requestor.
    • getActorImage

      public org.eclipse.swt.graphics.Image getActorImage()
      Gets the image to use.
      Specified by:
      getActorImage in interface IEditorActionActorSettings
    • getDetails

      public String getDetails()
      Gets details for this action actor.
      Specified by:
      getDetails in interface IEditorActionActorSettings
      Returns:
      A string used in Eclipse details column for the Action Actors table.
    • getFixedSettings

      public ArrayList<PropertyEditorInfo> getFixedSettings()
      Gets fixed settings for the container.
      Specified by:
      getFixedSettings in interface IEditorActionActorSettings
      Returns:
      null (default) for property based, otherwise an array of the editable properties.
    • needsRefreshButton

      public boolean needsRefreshButton(org.eclipse.swt.widgets.Control control, Runnable refresh)
      Checks if fixed settings can be provided or not. If e.g. a class name is entered, the properties that is shown in the dialog box are taken from the Java code, and in this case, a refresh is needed.
      Specified by:
      needsRefreshButton in interface IEditorActionActorSettings
      Parameters:
      control - Shell to listen to when destroyed.
      refresh - Method to call to enable refresh button.
      Returns:
      true in order to show the button "Refresh properties" (will appear in the dialog box), false not to do so.

      Default is to return false.