public class IvmlOutlineTreeProvider
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 |
|---|
IvmlOutlineTreeProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_createChildren(org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode parentNode,
de.uni_hildesheim.sse.ivml.VariabilityUnit unit)
Create child-nodes for the document.
|
protected void |
_createChildren(org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode,
de.uni_hildesheim.sse.ivml.Project project)
Create child-nodes for the project.
|
protected boolean |
_isLeaf(de.uni_hildesheim.sse.ivml.Eval eval)
Eval-nodes are always leafs (do not have any children).
|
protected boolean |
_isLeaf(de.uni_hildesheim.sse.ivml.Project project)
Make the project-node a leaf (no children) if it does not contain
any contents.
|
protected boolean |
_isLeaf(de.uni_hildesheim.sse.ivml.VariableDeclaration var)
Variable-declaration-nodes are always leafs (do not have any children).
|
private void |
createAssignNodes(java.util.List<de.uni_hildesheim.sse.ivml.AttrAssignment> assignList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create attribute-assignment nodes.
|
private void |
createAttributeNodes(java.util.List<de.uni_hildesheim.sse.ivml.AnnotateTo> attrList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create attribute-nodes.
|
private void |
createConflictNodes(java.util.List<de.uni_hildesheim.sse.ivml.ConflictStmt> conflictList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create (virtual) main conflict-node which subsumes all conflict-declarations.
|
private void |
createDVNodes(java.util.List<de.uni_hildesheim.sse.ivml.VariableDeclaration> dvList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create (virtual) main decision-variable-node which subsumes all decision-variables.
|
private void |
createExpressionNodes(java.util.List<de.uni_hildesheim.sse.ivml.ExpressionStatement> exprList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create specific expression-nodes.
|
private void |
createFreezeNodes(java.util.List<de.uni_hildesheim.sse.ivml.Freeze> freezeList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create freeze-nodes.
|
private void |
createImportNodes(java.util.List<de.uni_hildesheim.sse.ivml.ImportStmt> importList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create (virtual) main import-node which subsumes all import-declarations.
|
private void |
createInterfaceNodes(java.util.List<de.uni_hildesheim.sse.ivml.InterfaceDeclaration> interfaceList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create (virtual) main interface-node which subsumes all interface-declarations.
|
private void |
createOpDefStatement(java.util.List<de.uni_hildesheim.sse.ivml.OpDefStatement> opDefList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create operation-definition-nodes.
|
protected void |
createProjectContents(org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode,
de.uni_hildesheim.sse.ivml.ProjectContents contents)
Create child-nodes for project-contents.
|
private void |
createTypeDefNodes(java.util.List<de.uni_hildesheim.sse.ivml.Typedef> typedefList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
Create type-definition-nodes.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.AnnotateTo attrStmt)
Check whether the attribute-statement is empty.
|
private static boolean |
isEmpty(org.eclipse.emf.common.util.EList<?> list)
Check whether a given EList is null or empty.
|
private static boolean |
isEmpty(java.util.List<?> list)
Check whether a given List is null or empty.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.ProjectContents pContents)
Check whether the given project-contents. is empty.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.TypedefCompound tdefCompound)
Check whether the given compound-definition is empty.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.TypedefEnum tdefEnum)
Check whether the given enum-definition is empty.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.TypedefMapping tdefMapping)
Check whether the given type-mapping is empty.
|
private boolean |
isEmpty(de.uni_hildesheim.sse.ivml.VariableDeclaration varDecl)
Check whether the given variable-declaration is empty.
|
private boolean |
noNames(de.uni_hildesheim.sse.ivml.AnnotateTo attrStmt)
Check whether the attribute-statement has no names (the elements the
attribute is assigned to).
|
private boolean |
noRelations(de.uni_hildesheim.sse.ivml.Project project)
Check whether the given project does not have any relations.
|
_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.ivml.VariabilityUnit unit)
parentNode - The document root node (virtual node, not displayed).unit - The top-level element of the IVML-gramar (VariabilityUnit).protected void _createChildren(org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode,
de.uni_hildesheim.sse.ivml.Project project)
parentNode - The document root node (virtual node, not displayed).project - The project.protected void createProjectContents(org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode,
de.uni_hildesheim.sse.ivml.ProjectContents contents)
parentNode - The project-content-node (virtual node).contents - The actual project contents in terms of an IVML-element.protected boolean _isLeaf(de.uni_hildesheim.sse.ivml.Project project)
project - The project to be checked.protected boolean _isLeaf(de.uni_hildesheim.sse.ivml.Eval eval)
eval - The eval-node.protected boolean _isLeaf(de.uni_hildesheim.sse.ivml.VariableDeclaration var)
var - The Variable-declaration-node.private void createInterfaceNodes(java.util.List<de.uni_hildesheim.sse.ivml.InterfaceDeclaration> interfaceList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
interfaceList - The list of interface-declarations of this project.parentNode - The parent node of the interface-node (the project-node).private void createConflictNodes(java.util.List<de.uni_hildesheim.sse.ivml.ConflictStmt> conflictList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
conflictList - The list of conflict-declarations of this project.parentNode - The parent node of the conflict-node (the project-node).private void createImportNodes(java.util.List<de.uni_hildesheim.sse.ivml.ImportStmt> importList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
importList - The list of import-declarations of this project.parentNode - The parent node of the import-node (the project-node).private void createExpressionNodes(java.util.List<de.uni_hildesheim.sse.ivml.ExpressionStatement> exprList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
exprList - The list of expression-declarations of this project.parentNode - The parent node of the expression-nodes (the project-contents-node).private void createAttributeNodes(java.util.List<de.uni_hildesheim.sse.ivml.AnnotateTo> attrList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
attrList - The list of attribute-declarations of this project.parentNode - The parent node of the attribute-nodes (the project-contents-node).private void createAssignNodes(java.util.List<de.uni_hildesheim.sse.ivml.AttrAssignment> assignList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
assignList - The list of attribute-assignment-declarations of this project.parentNode - The parent node of the attribute-assignment-nodes (the project-contents-node).private void createFreezeNodes(java.util.List<de.uni_hildesheim.sse.ivml.Freeze> freezeList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
freezeList - The list of freeze-declarations of this project.parentNode - The parent node of the freeze-nodes (the project-contents-node).private void createTypeDefNodes(java.util.List<de.uni_hildesheim.sse.ivml.Typedef> typedefList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
typedefList - The list of type-definitions of this project.parentNode - The parent node of the type-definition-nodes (the project-contents-node).private void createOpDefStatement(java.util.List<de.uni_hildesheim.sse.ivml.OpDefStatement> opDefList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
opDefList - The list of operation-definitions of this project.parentNode - The parent node of the operation-definition-nodes (the project-contents-node).private void createDVNodes(java.util.List<de.uni_hildesheim.sse.ivml.VariableDeclaration> dvList,
org.eclipse.xtext.ui.editor.outline.IOutlineNode parentNode)
dvList - The list of decision-variables of this project.parentNode - The parent node of the (virtual) main decision-variable-node which subsumes all
decision-variables (the project-contents-node).private boolean noRelations(de.uni_hildesheim.sse.ivml.Project project)
project - The project to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.ProjectContents pContents)
pContents - The project-contents to be checked.private static boolean isEmpty(org.eclipse.emf.common.util.EList<?> list)
list - The list to be checked.private static boolean isEmpty(java.util.List<?> list)
list - The list to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.AnnotateTo attrStmt)
attrStmt - The attribute-statement to be checked.private boolean noNames(de.uni_hildesheim.sse.ivml.AnnotateTo attrStmt)
attrStmt - The attribute-statement to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.TypedefMapping tdefMapping)
tdefMapping - The type-mapping to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.TypedefCompound tdefCompound)
tdefCompound - The compound-definition to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.TypedefEnum tdefEnum)
tdefEnum - The enum-definition to be checked.private boolean isEmpty(de.uni_hildesheim.sse.ivml.VariableDeclaration varDecl)
varDecl - The variable-declaration to be checked.Copyright © 2009 - 2018 SSE. All Rights Reserved.