Class BoolPropEditor

    • Field Detail

      • defaultValue

        protected boolean defaultValue
        The default value.
      • button

        protected org.eclipse.swt.widgets.Button button
        The button.
    • Constructor Detail

      • BoolPropEditor

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

      • create

        protected void create()
        Creates the property editor controls.
        Specified by:
        create in class BaseEditor<BoolProp,​java.lang.Boolean>
      • 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<BoolProp,​java.lang.Boolean>
      • getValue

        protected java.lang.Boolean getValue​(java.lang.String input)
                                      throws java.lang.Exception
        Gets the property value for a user input.
        Specified by:
        getValue in class BaseEditor<BoolProp,​java.lang.Boolean>
        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.
      • onError

        public void onError​(java.lang.String input,
                            java.lang.String message,
                            int severity,
                            boolean isMultipleValueWarning,
                            boolean isChildError)
        Called when the property is updated due to an error.
        Specified by:
        onError in interface IEditedPropControllerOwner<BoolProp,​java.lang.Boolean>
        Overrides:
        onError in class BaseEditor<BoolProp,​java.lang.Boolean>
      • widgetSelected

        public void widgetSelected​(org.eclipse.swt.events.SelectionEvent e)
        Checkbox pressed.
        Specified by:
        widgetSelected in interface org.eclipse.swt.events.SelectionListener
      • widgetDefaultSelected

        public void widgetDefaultSelected​(org.eclipse.swt.events.SelectionEvent e)
        Not processed.
        Specified by:
        widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
      • setColors

        protected void setColors​(org.eclipse.swt.widgets.Control... additional)
        Adds label to color.
        Overrides:
        setColors in class BaseEditor<BoolProp,​java.lang.Boolean>