Class ConfigurationTableEditorFactory.DelegatingGuiVariable

    • Field Detail

      • control

        private org.eclipse.swt.widgets.Control control
      • cellEditor

        private org.eclipse.jface.viewers.CellEditor cellEditor
    • Method Detail

      • setOverridingEditor

        private <T> T setOverridingEditor​(T editor)
        Defines the overriding editor.
        Type Parameters:
        T - the editor type
        Parameters:
        editor - the editor instance
        Returns:
        editor
      • getCellEditor

        public org.eclipse.jface.viewers.CellEditor getCellEditor​(org.eclipse.swt.widgets.Composite parent)
        Description copied from class: GUIVariable
        Returns a CellEditor for a table.
        Specified by:
        getCellEditor in class GUIVariable
        Parameters:
        parent - The GUI component where this GUIVariable and, thus, its editor are displayed.
        Returns:
        CellEditor to configure the enclosed IDecisionVariable
      • getEditor

        public GUIEditor getEditor()
        Description copied from class: GUIVariable
        Returns the (non-cell) editor for this variable. The editor shall be ready to use, i.e., properly initialized.
        Specified by:
        getEditor in class GUIVariable
        Returns:
        the editor, may be null if the variable shall not be displayed / being edited
      • getValue

        public java.lang.Object getValue()
        Description copied from class: GUIVariable
        Returns the value of the given IDecisionVariable so that it can be used as return value for the EditingSupport.getValue(Object) method.
        Specified by:
        getValue in interface GUIEditor
        Specified by:
        getValue in class GUIVariable
        Returns:
        A value as needed by the Eclipse UI.
      • getValueText

        public java.lang.String getValueText()
        Description copied from class: GUIVariable
        Returns a string representation of the current value. This is used when no cursor is inside the cell (if the user is not editing the variable).
        Specified by:
        getValueText in class GUIVariable
        Returns:
        A string representation of the current value or null.
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Description copied from interface: GUIEditor
        Returns the actual SWT control of the editor.
        Specified by:
        getControl in interface GUIEditor
        Returns:
        the control
      • isPseudoEditor

        public boolean isPseudoEditor()
        Description copied from interface: GUIEditor
        Returns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.
        Specified by:
        isPseudoEditor in interface GUIEditor
        Returns:
        true if it is a pseudo editor, false else
      • refreshContents

        public void refreshContents()
        Description copied from interface: GUIEditor
        Refreshes the contents of this editor.
        Specified by:
        refreshContents in interface GUIEditor