Class StringMapPropEditor

    • Constructor Detail

      • StringMapPropEditor

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

      • create

        protected void create()
        Creates the property editor controls.
        Specified by:
        create in class BaseEditor<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
      • setColors

        protected void setColors​(org.eclipse.swt.widgets.Control... additional)
        Sets the colors for the controls depending on error, focus and define state.
        Overrides:
        setColors in class BaseEditor<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
      • onMore

        public void onMore()
        Called when the "more..." button is pressed. Override to display drop-down menu.
        Overrides:
        onMore in class BaseEditor<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
      • onUpdate

        public void onUpdate​(java.util.Map<java.lang.String,​java.lang.String> map)
        Called when a property event has been fired and the edited entry needs to be updated. This method is also called when setting up the edited entry the first time.
        Specified by:
        onUpdate in interface IEditedPropControllerOwner<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
        Overrides:
        onUpdate in class BaseEditor<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
      • 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<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
      • getValue

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

        public java.lang.String formatValue​(java.util.Map<java.lang.String,​java.lang.String> value)
        Formats the value for user input as a String.
        Specified by:
        formatValue in interface IEditedPropControllerOwner<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
        Specified by:
        formatValue in class BaseEditor<StringMapProp,​java.util.Map<java.lang.String,​java.lang.String>>
        Parameters:
        value - The value.
        Returns:
        The formatted value.