Class EditorJavaActionActor.Settings

    • Constructor Detail

      • 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 Detail

      • 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 java.lang.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.
      • getDetails

        public java.lang.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.
      • needsRefreshButton

        public boolean needsRefreshButton​(org.eclipse.swt.widgets.Control control,
                                          java.lang.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.