Class EditorDatabaseActionActor.Settings

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

public static class EditorDatabaseActionActor.Settings extends DatabaseActionActor.Settings implements IEditorActionActorSettings, ISelectReferencePropFilter
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

    • getPropertyEditorSetup

      public PropertyEditorSetup getPropertyEditorSetup()
      Gets the Setup used for iiziGo, subclasses must override and provide their instance.
      Specified by:
      getPropertyEditorSetup in interface IEditorActionActorSettings
      Returns:
      The PropertyEditor setup data, or null to use the one from VirtualSpaceEditor.
    • getDesigner

      public DatabaseActionActorDesignerProp 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.
    • getDatabaseProps

      public EditorDatabaseProps getDatabaseProps()
      Gets the database properties that will be used to execute the transaction.
      Overrides:
      getDatabaseProps in class DatabaseActionActor.Settings
      Returns:
      The database properties, or null if not found.
    • 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.
    • getFilter

      public org.eclipse.jface.viewers.ViewerFilter getFilter(Class<?> propRefClass)
      Get the viewer filter that should be applied when selecting a property for a reference property class. Make sure it's only DB transactions with the same input VirtualSpace as the VS action's.
      Specified by:
      getFilter in interface ISelectReferencePropFilter
      Parameters:
      propRefClass - The property reference class, e.g. DatabaseReference.
      Returns:
      The filter instance, or null for none.
    • verify

      public boolean verify(PropVerification verification)
      Verifies this property container.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class PropCnr
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.