public class ConfigurationEditorFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfigurationEditorFactory.IConfigurationEditorCreator
Defines the instance of an editor creator.
|
| Modifier and Type | Field and Description |
|---|---|
private static ConfigurationEditorFactory.IConfigurationEditorCreator |
creator |
| Constructor and Description |
|---|
ConfigurationEditorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jface.viewers.ViewerFilter |
createAttributeFilter(java.lang.String attributeNameRegEx,
java.lang.String valueRegEx,
boolean showAllNestedElements)
Creates a simple attribute filter.
|
static org.eclipse.jface.viewers.TreeViewer |
createEditor(Configuration config,
org.eclipse.swt.widgets.Composite parent)
Creates a configuration editor.
|
static org.eclipse.jface.viewers.ViewerFilter |
createNameFilter(java.lang.String nameRegEx,
boolean showAllNestedElements)
Creates a name filter.
|
static org.eclipse.jface.viewers.ViewerFilter |
createNonFrozenFilter(boolean showAllNestedElements)
Creates a filter for non-frozen variables.
|
static void |
setCreator(ConfigurationEditorFactory.IConfigurationEditorCreator cfgCreator)
Defines the editor creator.
|
private static ConfigurationEditorFactory.IConfigurationEditorCreator creator
public static void setCreator(ConfigurationEditorFactory.IConfigurationEditorCreator cfgCreator)
cfgCreator - the creator instancepublic static org.eclipse.jface.viewers.TreeViewer createEditor(Configuration config, org.eclipse.swt.widgets.Composite parent)
config - the configuration to be shown in the editorparent - the UI parentpublic static org.eclipse.jface.viewers.ViewerFilter createNameFilter(java.lang.String nameRegEx,
boolean showAllNestedElements)
throws java.util.regex.PatternSyntaxException
nameRegEx - a regular expression for including namesshowAllNestedElements - if all nested elements or only the selected ones shall be displayedjava.util.regex.PatternSyntaxException - in case of an erroneous pattern syntaxpublic static org.eclipse.jface.viewers.ViewerFilter createAttributeFilter(java.lang.String attributeNameRegEx,
java.lang.String valueRegEx,
boolean showAllNestedElements)
throws java.util.regex.PatternSyntaxException
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 displayedjava.util.regex.PatternSyntaxException - in case of an erroneous pattern syntaxpublic static org.eclipse.jface.viewers.ViewerFilter createNonFrozenFilter(boolean showAllNestedElements)
showAllNestedElements - if all nested elements or only the selected ones shall be displayedCopyright © 2009 - 2018 SSE. All Rights Reserved.