Class AbstractElementSupplier
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractElementSupplier
-
- All Implemented Interfaces:
IInnerElementSupplier
- Direct Known Subclasses:
AbstractFeatureElementSupplier
public abstract class AbstractElementSupplier extends Object implements IInnerElementSupplier
Abstract supplier of inner elements.
-
-
Constructor Summary
Constructors Constructor Description AbstractElementSupplier()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IPartialEqualNode
createChildEqualNode(IPartialModelNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.protected List<IPartialModelNode>
createChildEqualNodes(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates child equal-side partial nodes for the specified parent and feature.protected abstract IPartialModelNode
createChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates a partial model node for the specified comparison node.protected List<IPartialModelNode>
createChildNodes(IPartialModelNode parent, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates child partial nodes for the specified parent and comparison node.protected EqualNodesObjectsCollector
createEqualNodesObjectsCollector()
Creates a collector to collect child objects to create equal nodes for.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.IInnerElementSupplier
getInnerElements, supports
-
-
-
-
Method Detail
-
createChildEqualNode
protected abstract IPartialEqualNode createChildEqualNode(IPartialModelNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.- Parameters:
parent
- the parent partial model node, notnull
parents
- the parent eObjects, notnull
eObjects
- the objects to create the partial node for, notnull
comparisonContext
- the comparison context, notnull
scopeProvider
- the scope provider, notnull
- Returns:
- a new partial model node, never
null
-
createChildNode
protected abstract IPartialModelNode createChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates a partial model node for the specified comparison node.- Parameters:
parent
- the parent partial model node, notnull
comparisonNode
- the comparison node for which to create the partial one, notnull
comparisonContext
- the comparison context, notnull
scopeProvider
- the scope provider, notnull
- Returns:
- a new partial model node, never
null
-
createChildEqualNodes
protected List<IPartialModelNode> createChildEqualNodes(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates child equal-side partial nodes for the specified parent and feature.- Parameters:
parent
- the parent partial node, cannot benull
feature
- the feature to create child nodes for, cannot benull
comparisonContext
- the comparison context, notnull
scopeProvider
- the scope provider, cannot benull
- Returns:
- the list of created partial nodes, cannot be
null
-
createChildNodes
protected List<IPartialModelNode> createChildNodes(IPartialModelNode parent, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Creates child partial nodes for the specified parent and comparison node.- Parameters:
parent
- the parent partial node, cannot benull
comparisonNode
- the comparison node to create partial nodes for, can benull
feature
- the node's feature, cannot benull
comparisonContext
- the comparison context, cannot benull
scopeProvider
- the scope provider, cannot benull
- Returns:
- the list of created partial nodes, cannot be
null
-
createEqualNodesObjectsCollector
protected EqualNodesObjectsCollector createEqualNodesObjectsCollector()
Creates a collector to collect child objects to create equal nodes for. Descendants may provide own implementation.- Returns:
- the collector instance, never
null
-
-