public class VilBuildLanguageOutlineTreeProvider
extends org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider
org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider.Background, org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider.Cancelable, org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider.ModeAware| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.xtext.ui.IImageHelper |
imageHelper |
| Constructor and Description |
|---|
VilBuildLanguageOutlineTreeProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_createChildren(org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode,
de.uni_hildesheim.sse.vilBuildLanguage.ImplementationUnit unit)
Creates the children for the ImplementationUnit.
|
boolean |
_isLeaf(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
Returns the value if the script is a leaf or not.
|
protected boolean |
checkAdviceName(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice advice)
Checks whether a given advice is not null and has a name.
|
private boolean |
checkCompoundNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Compound typedef)
Checks whether a given typedef declaration is not null, has a name and a type (name).
|
protected boolean |
checkParameter(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter param)
Checks whether a given parameter is not null, has a name and a type (name).
|
protected boolean |
checkRuleDeclaration(de.uni_hildesheim.sse.vilBuildLanguage.RuleDeclaration ruleDecl)
Checks whether a given rule declaration is not null and has a name.
|
protected boolean |
checkScriptParent(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
Checks whether a given script is not null and has a name.
|
private boolean |
checkTypedefNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef typedef)
Checks whether a given typedef declaration is not null, has a name and a type (name).
|
protected boolean |
checkVariableDeclaration(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration varDecl)
Checks whether a given variable declaration is not null, has a name and a type (name).
|
protected void |
createAdviceNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice> adviceList,
VirtualOutlineNode parentNode)
creates a node for every Advice-Statement.
|
private void |
createCompoundNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Compound compound,
VirtualOutlineNode parentNode)
Creates the Compounds.
|
protected void |
createImportNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Import> importList,
VirtualOutlineNode parentNode)
Creates the nodes for the imports.
|
protected void |
createParametersNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> paramList,
VirtualOutlineNode parentNode)
Creates the Nodes for the parameters.
|
protected void |
createPropertyNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vilBuildLanguage.LoadProperties> propList,
VirtualOutlineNode parentNode)
Creates the nodes for the properties.
|
protected void |
createScriptContentNode(org.eclipse.emf.ecore.EObject element,
VirtualOutlineNode parentNode)
Creates (further) content nodes.
|
protected void |
createScriptContentNodes(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> content,
VirtualOutlineNode parentNode)
Creates the RuleDeclarations and the VariableDeclarations.
|
protected void |
createScriptContentNodes(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script,
VirtualOutlineNode parentNode)
Creates the content nodes for
script. |
protected void |
createScriptNodes(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script,
org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode)
creates a node for the vilScript.
|
private void |
createTypdefNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef typedef,
VirtualOutlineNode parentNode)
Creates the type defs.
|
private void |
createVariableDeclarationNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration var,
VirtualOutlineNode parentNode)
Creates the VariableDeclarations.
|
protected void |
createVersionNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VersionStmt version,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Creates the version node.
|
protected org.eclipse.xtext.ui.IImageHelper |
getImageHelper()
Returns the image helper.
|
protected boolean |
hasContents(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
Returns whether
script has contents. |
protected static boolean |
isEmpty(org.eclipse.emf.common.util.EList<?> list)
Check whether a given EList is null or empty.
|
protected java.lang.String |
toString(de.uni_hildesheim.sse.vil.expressions.expressionDsl.ParameterList params) |
protected java.lang.String |
toString(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Type type) |
_createChildren, _createChildren, _createChildren, _createChildren, _createNode, _createNode, _createNode, _image, _isLeaf, _isLeaf, _text, checkCanceled, createChildren, createEObjectNode, createEObjectNode, createEStructuralFeatureNode, createNode, createRoot, createRoot, isLocalElement, nullSafeClassNameprotected void _createChildren(org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode,
de.uni_hildesheim.sse.vilBuildLanguage.ImplementationUnit unit)
parentNode - parentNodeunit - Create children for unit-objectprotected void createAdviceNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice> adviceList,
VirtualOutlineNode parentNode)
adviceList - List with all AdvicesparentNode - parentnodeprotected void createScriptNodes(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script,
org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode)
script - the vilScriptparentNode - parentnodeprotected boolean hasContents(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
script has contents.script - the scripttrue if the script has contents, false elseprotected void createScriptContentNodes(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script,
VirtualOutlineNode parentNode)
script.script - the script to create the content nodes forparentNode - the parent node for adding new nodesprotected void createVersionNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VersionStmt version,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
version - versionparentNode - version will be displayed under this nodeprotected void createParametersNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> paramList,
VirtualOutlineNode parentNode)
paramList - List with the parametersparentNode - all parameters will be displayed under this nodeprotected void createPropertyNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vilBuildLanguage.LoadProperties> propList,
VirtualOutlineNode parentNode)
propList - List with all propertiesparentNode - all properties will be displayed under this nodeprotected void createImportNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Import> importList,
VirtualOutlineNode parentNode)
importList - List with all importsparentNode - all imports will be displayed under this nodeprotected void createScriptContentNodes(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> content,
VirtualOutlineNode parentNode)
content - ScriptContentsparentNode - all Rules and Variables will be displayed under this nodeprivate void createVariableDeclarationNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration var,
VirtualOutlineNode parentNode)
var - variableparentNode - all Rules and Variables will be displayed under this nodeprivate void createTypdefNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef typedef,
VirtualOutlineNode parentNode)
typedef - typedefparentNode - all Rules and Variables will be displayed under this nodeprivate void createCompoundNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Compound compound,
VirtualOutlineNode parentNode)
compound - compoundparentNode - all Rules and Variables will be displayed under this nodeprotected java.lang.String toString(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Type type)
protected java.lang.String toString(de.uni_hildesheim.sse.vil.expressions.expressionDsl.ParameterList params)
protected void createScriptContentNode(org.eclipse.emf.ecore.EObject element,
VirtualOutlineNode parentNode)
content - ScriptContentsparentNode - all Rules and Variables will be displayed under this nodepublic boolean _isLeaf(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
script - protected static boolean isEmpty(org.eclipse.emf.common.util.EList<?> list)
list - The list to be checked.protected boolean checkScriptParent(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit script)
script - the script to be checkedprotected boolean checkAdviceName(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice advice)
advice - the advice to be checkedprotected boolean checkParameter(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter param)
param - the parameter to be checked.protected boolean checkRuleDeclaration(de.uni_hildesheim.sse.vilBuildLanguage.RuleDeclaration ruleDecl)
ruleDecl - the rule declaration to be checked.protected boolean checkVariableDeclaration(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration varDecl)
varDecl - the variable declaration to be checkedprivate boolean checkTypedefNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef typedef)
typedef - the typedef to be checkedprivate boolean checkCompoundNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Compound typedef)
typedef - the typedef to be checkedprotected org.eclipse.xtext.ui.IImageHelper getImageHelper()
Copyright © 2009 - 2018 SSE. All Rights Reserved.