public class TemplateLangOutlineTreeProvider
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 |
|---|
TemplateLangOutlineTreeProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_createChildren(org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode,
de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit unit)
Creates the Children for LanguageUnit.
|
private 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).
|
private boolean |
checkIndentation(de.uni_hildesheim.sse.vil.templatelang.templateLang.IndentationHintPart indent)
Checks whether a given indent is not null and has a name and a value.
|
private 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).
|
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).
|
private 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).
|
private 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.
|
private void |
createDefNode(de.uni_hildesheim.sse.vil.templatelang.templateLang.VilDef def,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Creates the node for 'def' declarations.
|
private 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.
|
private void |
createIndentNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.templatelang.templateLang.IndentationHintPart> indList,
VirtualOutlineNode parentNode)
Creates the nodes for '@indent'.
|
private void |
createJavaExtNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.templatelang.templateLang.Extension> javExts,
VirtualOutlineNode parentNode)
Creates the nodes for java extensions.
|
private void |
createParameterNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> paramList,
VirtualOutlineNode parentNode)
Creates the nodes for parameters.
|
private void |
createScriptContentNodes(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> elements,
VirtualOutlineNode parentNode)
Creates the DefDeclarations and the VariableDeclarations.
|
private void |
createTemplateNodes(de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit unit,
org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode)
Creates all nodes for the template.
|
private void |
createTypdefNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef typedef,
VirtualOutlineNode parentNode)
Creates the type defs.
|
private void |
createVariableNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration var,
VirtualOutlineNode parentNode)
Creates the VariableDeclarations.
|
private void |
createVersionNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VersionStmt version,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Creates the version node.
|
private boolean |
hasContents(de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit templateUnit)
Checks whether a given template includes variable declarations or sub-template (def) declarations.
|
private static boolean |
isEmpty(org.eclipse.emf.common.util.EList<?> list)
Check whether a given EList is null or empty.
|
_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.vil.templatelang.templateLang.LanguageUnit unit)
parentNode - the parent nodeunit - the LanguageUnitprivate void createAdviceNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice> adviceList,
VirtualOutlineNode parentNode)
adviceList - List with all AdvicesparentNode - parentnodeprivate void createTemplateNodes(de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit unit,
org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode)
unit - LanguageUnit with TemplateparentNode - the parent nodeprivate void createScriptContentNodes(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> elements,
VirtualOutlineNode parentNode)
varDecls - the list of variable declarationssubTemps - the list of su-template declarationsparentNode - the parent nodeprivate void createDefNode(de.uni_hildesheim.sse.vil.templatelang.templateLang.VilDef def,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
def - the 'def' declarationparentNode - the parent nodeprivate 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 nodeprivate 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 nodeprivate void createJavaExtNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.templatelang.templateLang.Extension> javExts,
VirtualOutlineNode parentNode)
javExts - list with all java extensionsparentNode - the parent nodeprivate void createParameterNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> paramList,
VirtualOutlineNode parentNode)
paramList - list with all parametersparentNode - the parent nodeprivate void createIndentNodes(org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.templatelang.templateLang.IndentationHintPart> indList,
VirtualOutlineNode parentNode)
indList - list with all indentsparentNode - the parent 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 nodeprivate void createVariableNode(de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration var,
VirtualOutlineNode parentNode)
var - variableparentNode - all Rules and Variables will be displayed under this nodeprivate static boolean isEmpty(org.eclipse.emf.common.util.EList<?> list)
list - The list to be checked.private boolean hasContents(de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit templateUnit)
templateUnit - the language unit to be checkedprivate boolean checkAdviceName(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Advice advice)
advice - the advice to be checkedprivate boolean checkIndentation(de.uni_hildesheim.sse.vil.templatelang.templateLang.IndentationHintPart indent)
indent - the indent to be checkedprivate boolean checkParameter(de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter param)
param - the parameter to be checked.private 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 checkedCopyright © 2009 - 2018 SSE. All Rights Reserved.