Class EqualListElementTerminalNode
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractNodeWithLabels
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.ListElementTerminalNode
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.EqualListElementTerminalNode
-
- All Implemented Interfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialEqualNode
,IPartialListElementNode
,IPartialModelNode
- Direct Known Subclasses:
EqualReferenceListElementTerminalNode
public class EqualListElementTerminalNode extends ListElementTerminalNode implements IPartialEqualNode
A terminal list element equal partial model node.
-
-
Constructor Summary
Constructors Constructor Description EqualListElementTerminalNode(IPartialFeatureNode parent, String representation, int mainPosition, int otherPosition, ComparisonSide objectSide, IImageProvider imageProvider, String label, IComparisonSession comparisonSession)
Constructs a node.EqualListElementTerminalNode(IPartialFeatureNode parent, String representation, String renamedOtherRepresentation, int mainPosition, int otherPosition, ComparisonSide objectSide, IImageProvider imageProvider, String label, IComparisonSession comparisonSession)
Constructs a node.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(boolean checked)
Checks the node.ComparisonSide
getModelObjectSide()
Returns the side (MAIN or OTHER) where the model object presents and the partial node is built for.ComparisonSide
getSide()
If the compared object presents only on MAIN or on OTHER side and is absent on the other one, that side is returned.String
getSideLabel(ComparisonSide side)
Returns a label (textual representation) of the value referred from the specified side of the node.org.eclipse.emf.ecore.EObject
retrieveModelObject(ComparisonContext comparisonContext)
Retrieves model object the node is built for.-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.ListElementTerminalNode
getLabel, getParentFeature, getPosition
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractNodeWithLabels
addChild, getAvailableMergeRules, getImage, getMergeRule, getStatus, getTooltipText, hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchanged, isCheckable, isChecked, isGrayed, setChecked, setGrayed, setMergeRule, setShowMergeRule, setStatus, showMergeRule
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
canExpand, getChildren, getClosestDirectParent, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, getSortedChildren, hasChildren, prioritize, retrieveComparisonNode, setCustomMergeSettingsStatus, setParent
-
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.model.IComparedElement
hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchanged
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IMergeRulePartialModelNode
getAvailableMergeRules, getMergeRule, setMergeRule, setShowMergeRule, showMergeRule
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IPartialModelNode
addChild, canExpand, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getImage, getLabel, getNodeId, getParent, getSortedChildren, getStatus, getTooltipText, hasChildren, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
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 noderepresentation
- the representation of the objectparentFeature
- the object's parent feature, notnull
mainPosition
- the object's position from the MAIN sideotherPosition
- the object's position from the OTHER sideobjectSide
- the side where the object presents ornull
if it presents on both sidesimageProvider
- the image providerlabel
- the list element labelcomparisonSession
- 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 noderepresentation
- the representation of the objectmainPosition
- the object's position from the MAIN sideotherPosition
- the object's position from the OTHER sideobjectSide
- the side where the object presents ornull
if it presents on both sidesimageProvider
- the image providerlabel
- the list element labelcomparisonSession
- the comparison session
-
EqualListElementTerminalNode
public EqualListElementTerminalNode(IPartialFeatureNode parent, String representation, String renamedOtherRepresentation, int mainPosition, int otherPosition, ComparisonSide objectSide, IImageProvider imageProvider, String label, IComparisonSession comparisonSession)
Constructs a node.- Parameters:
parent
- the parent partial model node, cannot benull
representation
- the representation of the object, may benull
renamedOtherRepresentation
- the representation of the other renamed object, may benull
if the other object is null or it was not renamedmainPosition
- the object's position from the MAIN sideotherPosition
- the object's position from the OTHER sideobjectSide
- the side where the object presents ornull
if it presents on both sidesimageProvider
- the image provider, may benull
label
- the list element label, may benull
comparisonSession
- the comparison session, cannot benull
-
-
Method Detail
-
getSide
public ComparisonSide getSide()
Description copied from interface:IPartialModelNode
If the compared object presents only on MAIN or on OTHER side and is absent on the other one, that side is returned.- Specified by:
getSide
in interfaceIPartialModelNode
- Overrides:
getSide
in classAbstractPartialModelNode
- Returns:
- the MAIN or OTHER side or
null
if the compared object presents on both sides
-
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 interfaceIPartialEqualNode
- 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 interfaceIPartialModelNode
- Overrides:
check
in classAbstractPartialModelNode
- 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 interfaceIPartialEqualNode
- Parameters:
comparisonContext
- the comparison context, nevernull
- Returns:
- the model object, never
null
-
getSideLabel
public String getSideLabel(ComparisonSide side)
Description copied from interface:IPartialModelNode
Returns a label (textual representation) of the value referred from the specified side of the node.- Specified by:
getSideLabel
in interfaceIPartialModelNode
- Overrides:
getSideLabel
in classAbstractNodeWithLabels
- Parameters:
side
- the side of the node- Returns:
- a label
-
-