Class ActionActorDesignerProp

    • Constructor Detail

      • ActionActorDesignerProp

        public ActionActorDesignerProp​(AbstractSettings propertyContainer,
                                       PropertyEditorSetup actorSetup)
        Constructor.
        Parameters:
        propertyContainer - The property container must implement IEditorActionActorSettings.
        Throws:
        java.lang.IllegalArgumentException - If propertyContainer doesn't implement IActorPropDesigner.
    • Method Detail

      • getVirtualSpace

        public EditorVirtualSpace getVirtualSpace()
        Gets the VirtualSpace containing the action actor.
        Returns:
        The VirtualSpace, or null if actor is not connected to any, i.e. "orphan".
      • getSubPropertyName

        public java.lang.String getSubPropertyName​(IGProp<?> subProperty)
        Get the name of a sub-property. A checks is done against the entries in the Property Editor.
        Overrides:
        getSubPropertyName in class DesignerProp
        Returns:
        The name of the property, or null for none.
      • getCNText

        public java.lang.String getCNText​(int flags)
        Gets the label text for the Common Navigator.
        Specified by:
        getCNText in interface INavigatorPresentation
        Overrides:
        getCNText in class DesignerProp
        Returns:
        String or or null if there is no text.
      • getCNText

        public java.lang.String getCNText​(int columnIndex,
                                          int flags)
        Gets the label text for the Common Navigator.
        Specified by:
        getCNText in interface INavigatorPresentation
        Overrides:
        getCNText in class DesignerProp
        Parameters:
        columnIndex - The zero-based index for the column (zero is never used, the method getCNText() is called instead.
        Returns:
        String or or null if there is no text for the given object at columnIndex.
      • getCNImage

        public org.eclipse.swt.graphics.Image getCNImage​(int flags)
        Gets the image for the Common Navigator.
        Specified by:
        getCNImage in interface INavigatorPresentation
        Overrides:
        getCNImage in class DesignerProp
        Parameters:
        flags - The flags for the image, see FLAG_IMAGE_*.
        Returns:
        Image or null if there is no image.
      • hasCNToolTip

        public boolean hasCNToolTip​(org.eclipse.jface.viewers.ViewerCell cell)
        Checks for Common Navigator tool-tip for this item.
        Overrides:
        hasCNToolTip in class DesignerProp
        Parameters:
        cell - The cell (might be in a table), or null for none.
      • createCNToolTip

        public org.eclipse.swt.widgets.Composite createCNToolTip​(org.eclipse.swt.widgets.Event event,
                                                                 org.eclipse.jface.viewers.ViewerCell cell,
                                                                 org.eclipse.swt.widgets.Composite parent)
        Requests creates of the Composite used to show the tooltip.
        Overrides:
        createCNToolTip in class DesignerProp
        Parameters:
        event - Event triggering the tooltip (mouse hover).
        cell - The cell (might be in a table).
        parent - The parent composite.
        Returns:
        The created composite in the parent.