Class ConfigurationTableEditorFactory

    • Constructor Detail

      • ConfigurationTableEditorFactory

        public ConfigurationTableEditorFactory()
    • Method Detail

      • createConfigurationTableEditor

        public static final org.eclipse.jface.viewers.TreeViewer createConfigurationTableEditor​(Configuration configuration,
                                                                                                IEASyEditorPage parent)
        Creates a configuration table editor.
        Parameters:
        configuration - the configuration to be displayed / manipulated
        parent - the parent instance
        Returns:
        the configuration table editor
      • createConfiguration

        public static final ConfigurationTableEditorFactory.UIConfiguration createConfiguration​(Configuration config,
                                                                                                IEASyEditorPage parent)
        Creates a configuration instance holding UI configuration elements without parameters. The returned instance may be used to create multiple editors.
        Parameters:
        config - the IVML configuration
        parent - the editor parent instance
        Returns:
        the UI configuration
      • createEditor

        public static final org.eclipse.swt.widgets.Control createEditor​(ConfigurationTableEditorFactory.UIConfiguration config,
                                                                         IDecisionVariable variable)
        Creates a form editor element for the given decision variable.
        Parameters:
        config - the UI configuration containing variable
        variable - the variable to return the editor for
        Returns:
        the editor
      • createEditor

        public static final org.eclipse.swt.widgets.Control createEditor​(ConfigurationTableEditorFactory.UIConfiguration config,
                                                                         IDecisionVariable variable,
                                                                         java.util.List<IRangeRestriction> restrictors)
        Creates a form editor element for the given decision variable.
        Parameters:
        config - the UI configuration containing variable
        variable - the variable to return the editor for
        restrictors - Optional list to restrict values of drop down editors
        Returns:
        the editor
      • createCellEditor

        public static final org.eclipse.jface.viewers.CellEditor createCellEditor​(ConfigurationTableEditorFactory.UIConfiguration config,
                                                                                  IDecisionVariable variable)
        Creates a cell editor element for the given decision variable.
        Parameters:
        config - the UI configuration containing variable
        variable - the variable to return the editor for
        Returns:
        the editor
      • createCellEditor

        public static final org.eclipse.jface.viewers.CellEditor createCellEditor​(ConfigurationTableEditorFactory.UIConfiguration config,
                                                                                  IDecisionVariable variable,
                                                                                  java.util.List<IRangeRestriction> restrictors)
        Creates a cell editor element for the given decision variable.
        Parameters:
        config - the UI configuration containing variable
        variable - the variable to return the editor for
        restrictors - Optional list to restrict values of drop down editors
        Returns:
        the editor
      • registerEditorCreator

        public static final void registerEditorCreator​(java.lang.String key,
                                                       ConfigurationTableEditorFactory.IEditorCreator creator)
        Registers an editor creator, i.e., a plugin that supersedes the EASy way of creating editors for specific cases. Empty keys, null keys or null creators are ignored.
        Parameters:
        key - (qualified) name or type to react on
        creator - the editor creator to register with
      • setDisplayNameProvider

        public static final void setDisplayNameProvider​(DisplayNameProvider provider)
        Changes the display name provider. [convenience]
        Parameters:
        provider - the new name provider (considered only if not null)
      • getDisplayNameProvider

        public static final DisplayNameProvider getDisplayNameProvider()
        Returns the current display name provider. [convenience]
        Returns:
        the current display name provider
      • createUpdatableCellEditors

        public static final void createUpdatableCellEditors​(boolean updatable)
        Defines whether updatable cell editors shall be created if possible.
        Parameters:
        updatable - if true, updatable cell editors shall be created, false for usual ones
      • createAttributeFilter

        public org.eclipse.jface.viewers.ViewerFilter createAttributeFilter​(java.lang.String attributeNameRegEx,
                                                                            java.lang.String valueRegEx,
                                                                            boolean showAllNestedElements)
        Description copied from interface: ConfigurationEditorFactory.IConfigurationEditorCreator
        Creates a simple attribute filter.
        Specified by:
        createAttributeFilter in interface ConfigurationEditorFactory.IConfigurationEditorCreator
        Parameters:
        attributeNameRegEx - the name of the attribute as regular expression
        valueRegEx - a regular expression to be applied on the text representation of values
        showAllNestedElements - if all nested elements or only the selected ones shall be displayed
        Returns:
        the name filter