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>
        input - The current user input.
        The property value for the input, or null to un-define the property.
        java.lang.Exception - For validation errors.
      • formatValue

        public java.lang.String formatValue​(java.lang.Integer value)
        Formats the value for user input as a String.
        Specified by:
        formatValue in interface IEditedPropControllerOwner<IntProp,​java.lang.Integer>
        Specified by:
        formatValue in class BaseEditor<IntProp,​java.lang.Integer>
        value - The value.
        The formatted value.
      • 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.
        setInput in class BaseEditor<IntProp,​java.lang.Integer>
        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.
        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.
        onMore in class BaseEditor<IntProp,​java.lang.Integer>