Class StylesStatesPropEditor

    • Constructor Detail

      • StylesStatesPropEditor

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

      • create

        protected void create()
        Creates the property editor controls.
        Specified by:
        create in class BaseEditor<IntProp,​java.lang.Integer>
      • getToolTipText

        protected java.lang.String getToolTipText()
        Gets the tooltip text to display in the entry fields (not the one for property errors or validator).
        Specified by:
        getToolTipText in class BaseEditor<IntProp,​java.lang.Integer>
      • getValue

        protected java.lang.Integer getValue​(java.lang.String input)
                                      throws java.lang.Exception
        Gets the property value for a user input.
        Specified by:
        getValue in class BaseEditor<IntProp,​java.lang.Integer>
        Parameters:
        input - The current user input.
        Returns:
        The property value for the input, or null to un-define the property.
        Throws:
        java.lang.Exception - For validation errors.
      • setInput

        protected boolean setInput​(java.lang.String value)
        Description copied from class: BaseEditor
        Updates the entry or visible part in the editor with a new property value that is not in error state. The default implementation updates the combo box or text with the value.toString() representation. The existing input should be checked for difference in order not to update the entry if not required. If the input is null, it means no change of the current input the user has made or was previously set.
        Overrides:
        setInput in class BaseEditor<IntProp,​java.lang.Integer>
        Returns:
        true if changed, false for no change.
      • onDoubleClick

        protected void onDoubleClick​(org.eclipse.swt.widgets.Event e)
        Called when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.
        Overrides:
        onDoubleClick in class BaseEditor<IntProp,​java.lang.Integer>
      • onMore

        public void onMore()
        Description copied from class: BaseEditor
        Called when the "more..." button is pressed. Override to display dialog box.
        Overrides:
        onMore in class BaseEditor<IntProp,​java.lang.Integer>