Class AbstractElementSupplier

    • Constructor Detail

      • AbstractElementSupplier

        public AbstractElementSupplier()
    • 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, not null
        parents - the parent eObjects, not null
        eObjects - the objects to create the partial node for, not null
        comparisonContext - the comparison context, not null
        scopeProvider - the scope provider, not null
        Returns:
        a new partial model node, never null
      • createChildNode

        protected abstract IPartialModelNode createChildNode​(IPartialModelNode parent,
                                                             ComparisonTreeNode 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, not null
        comparisonNode - the comparison node for which to create the partial one, not null
        comparisonContext - the comparison context, not null
        scopeProvider - the scope provider, not null
        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 be null
        feature - the feature to create child nodes for, cannot be null
        comparisonContext - the comparison context, not null
        scopeProvider - the scope provider, cannot be null
        Returns:
        the list of created partial nodes, cannot be null
      • createChildNodes

        protected List<IPartialModelNode> createChildNodes​(IPartialModelNode parent,
                                                           ComparisonTreeNode 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 be null
        comparisonNode - the comparison node to create partial nodes for, can be null
        feature - the node's feature, cannot be null
        comparisonContext - the comparison context, cannot be null
        scopeProvider - the scope provider, cannot be null
        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