Class ReferencePropEditor<TARGET extends IPropCnr>

    • Field Detail

      • TEXT_MESSAGE

        protected java.lang.String TEXT_MESSAGE
        Text message as tooltip text.
      • SELECT_MESSAGE

        protected java.lang.String SELECT_MESSAGE
      • image

        protected org.eclipse.swt.graphics.Image image
      • classes

        protected java.lang.Class<?>[] classes
      • filterClass

        protected java.lang.Class<org.eclipse.jface.viewers.ViewerFilter> filterClass
      • filter

        protected org.eclipse.jface.viewers.ViewerFilter filter
      • selectionRoot

        protected java.lang.Object selectionRoot
        Selection root.
      • alternateSelection

        protected java.lang.Object alternateSelection
      • alternateExpansionLevel

        protected int alternateExpansionLevel
    • Constructor Detail

      • ReferencePropEditor

        public ReferencePropEditor()
        Default constructor called before createControls.
    • Method Detail

      • setup

        protected void setup()
        Override to provide user settings.
      • onCreateMenu

        protected void onCreateMenu​(IzMenu menu,
                                    boolean isPost)
        Called to create the menu items.
      • getLookupPropReference

        protected java.lang.String getLookupPropReference​(java.lang.String name)
        Creates the reference string to look-up from the ReferenceString. Override this method for e.g. Base or Fixed Relative referencing.
        Parameters:
        name - The reference name.
        Returns:
        The property reference string to look-up.
      • setLookedUpReference

        protected java.lang.String setLookedUpReference​(java.lang.String name)
        Sets the reference found that also has been validated. This method gives the opportunity for a subclass to remove e.g. the Base or Fixed Relative reference from the string start.
        Parameters:
        name - The full reference.
        Returns:
        The reference to set in this property as ReferenceString.
      • onList

        public boolean onList​(boolean doPerform)
        Displays the listing selection dialog.
      • onGoto

        protected boolean onGoto​(boolean doPerform)
        Goto reference.
      • setToolTipText

        protected void setToolTipText​(java.lang.String msg)
        Sets the tooltip text. The default is to apply the getToolTipText() text to the edit control.

        An attempt to show the tooltip of the reference target's DesignerProp tooltip is done.

        Overrides:
        setToolTipText in class BaseEditor<AbstractReference<TARGET extends IPropCnr>,​ReferenceString>
        Parameters:
        msg - Message in tooltip (normally error), null for none, in which case the getToolTipText2() is used.
      • getBaseReferencePath

        protected java.lang.String getBaseReferencePath()
        Gets the relative base for reference parsing, i.e. the reference path of the base.
        Returns:
        null if non-relative.
      • getCurrentReferenceTarget

        protected GProp<?> getCurrentReferenceTarget()
        Gets the current property reference target. This reference is retrieved from the current input. If the path contains "Module:/", it is assumed to be a hard path. Otherwise the getBaseReferencePath() is prepended.
      • addDropSupport

        protected void addDropSupport()
        Adds drop support for a control.