Package net.ssehub.easy.dslCore.ui
Interface ConfigurationEditorFactory.IConfigurationEditorCreator
-
- All Known Implementing Classes:
ConfigurationTableEditorFactory
- Enclosing class:
- ConfigurationEditorFactory
public static interface ConfigurationEditorFactory.IConfigurationEditorCreatorDefines the instance of an editor creator.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jface.viewers.ViewerFiltercreateAttributeFilter(java.lang.String attributeNameRegEx, java.lang.String valueRegEx, boolean showAllNestedElements)Creates a simple attribute filter.org.eclipse.jface.viewers.TreeViewercreateEditor(Configuration config, org.eclipse.swt.widgets.Composite parent)Creates a configuration editor.org.eclipse.jface.viewers.ViewerFiltercreateNameFilter(java.lang.String nameRegEx, boolean showAllNestedElements)Creates a name filter.org.eclipse.jface.viewers.ViewerFiltercreateNonFrozenFilter(boolean showAllNestedElements)Creates a filter that shows only non-frozen elements.
-
-
-
Method Detail
-
createEditor
org.eclipse.jface.viewers.TreeViewer createEditor(Configuration config, org.eclipse.swt.widgets.Composite parent)
Creates a configuration editor.- Parameters:
config- the configuration to be shown in the editorparent- the UI parent- Returns:
- the editor
-
createNameFilter
org.eclipse.jface.viewers.ViewerFilter createNameFilter(java.lang.String nameRegEx, boolean showAllNestedElements) throws java.util.regex.PatternSyntaxExceptionCreates a name filter.- Parameters:
nameRegEx- a regular expression for including namesshowAllNestedElements- if all nested elements or only the selected ones shall be displayed- Returns:
- the name filter
- Throws:
java.util.regex.PatternSyntaxException- in case of erroneous pattern syntax
-
createAttributeFilter
org.eclipse.jface.viewers.ViewerFilter createAttributeFilter(java.lang.String attributeNameRegEx, java.lang.String valueRegEx, boolean showAllNestedElements) throws java.util.regex.PatternSyntaxExceptionCreates a simple attribute filter.- Parameters:
attributeNameRegEx- the name of the attribute as regular expressionvalueRegEx- a regular expression to be applied on the text representation of valuesshowAllNestedElements- if all nested elements or only the selected ones shall be displayed- Returns:
- the name filter
- Throws:
java.util.regex.PatternSyntaxException- in case of erroneous pattern syntax
-
createNonFrozenFilter
org.eclipse.jface.viewers.ViewerFilter createNonFrozenFilter(boolean showAllNestedElements)
Creates a filter that shows only non-frozen elements.- Parameters:
showAllNestedElements- if all nested elements or only the selected ones shall be displayed- Returns:
- the non-frozen filter
-
-