Class EqualListElementTerminalNode

    • Constructor Detail

      • EqualListElementTerminalNode

        public EqualListElementTerminalNode​(IPartialModelNode parent,
                                            String representation,
                                            org.eclipse.emf.ecore.EStructuralFeature parentFeature,
                                            int mainPosition,
                                            int otherPosition,
                                            ComparisonSide objectSide,
                                            IImageProvider imageProvider,
                                            String label,
                                            IComparisonSession comparisonSession)
        Constructs a node with the specified object's parent feature.
        Parameters:
        parent - the parent partial model node
        representation - the representation of the object
        parentFeature - the object's parent feature, not null
        mainPosition - the object's position from the MAIN side
        otherPosition - the object's position from the OTHER side
        objectSide - the side where the object presents or null if it presents on both sides
        imageProvider - the image provider
        label - the list element label
        comparisonSession - the comparison session
      • EqualListElementTerminalNode

        public EqualListElementTerminalNode​(IPartialFeatureNode parent,
                                            String representation,
                                            int mainPosition,
                                            int otherPosition,
                                            ComparisonSide objectSide,
                                            IImageProvider imageProvider,
                                            String label,
                                            IComparisonSession comparisonSession)
        Constructs a node.
        Parameters:
        parent - the parent partial model node
        representation - the representation of the object
        mainPosition - the object's position from the MAIN side
        otherPosition - the object's position from the OTHER side
        objectSide - the side where the object presents or null if it presents on both sides
        imageProvider - the image provider
        label - the list element label
        comparisonSession - the comparison session
    • 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