Class AbstractEqualNodeWithChildren

    • Constructor Detail

      • AbstractEqualNodeWithChildren

        protected AbstractEqualNodeWithChildren​(IPartialModelNode parent,
                                                org.eclipse.emf.ecore.EObject modelObject,
                                                org.eclipse.emf.ecore.EStructuralFeature feature,
                                                int modelObjectPosition,
                                                ComparisonSide objectSide,
                                                String label,
                                                IImageProvider imageProvider,
                                                IComparisonSession comparisonSession)
        Constructs a node.
        Parameters:
        parent - the parent partial model node, cannot be null
        modelObject - the object to build partial node for, cannot be null
        feature - the object's feature, cannot be null
        modelObjectPosition - the object's position in a many-feature array or -1
        objectSide - the side where the object presents or null if it presents on both sides
        label - the object's representation
        imageProvider - the image provider
        comparisonSession - the comparison session, cannot be null
    • Method Detail

      • getModelObjectSide

        public ComparisonSide getModelObjectSide()
        Description copied from interface: IPartialEqualNode
        Returns the side (MAIN or OTHER) where the model object presents and the partial node is built for.
        Specified by:
        getModelObjectSide in interface IPartialEqualNode
        Returns:
        the MAIN or OTHER side, never COMMON_ANCESTOR, never null
      • check

        public void check​(boolean checked)
        Description copied from interface: IPartialModelNode
        Checks the node. It changes node's state in the model and sets corresponding flag in the partial model node.
        Specified by:
        check in interface IPartialModelNode
        Overrides:
        check in class AbstractPartialModelNode
        Parameters:
        checked - true to check, false to uncheck
      • retrieveModelObject

        public org.eclipse.emf.ecore.EObject retrieveModelObject​(ComparisonContext comparisonContext)
        Description copied from interface: IPartialEqualNode
        Retrieves model object the node is built for.
        Specified by:
        retrieveModelObject in interface IPartialEqualNode
        Parameters:
        comparisonContext - the comparison context, never null
        Returns:
        the model object, never null