Interface IPartialEqualNode
-
- All Superinterfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialModelNode
- All Known Subinterfaces:
IPartialEqualFeatureNode
- All Known Implementing Classes:
AbstractEqualNodeWithChildren
,EqualEmfFeatureNodeWithChildren
,EqualEmfFeatureTerminalNode
,EqualListElementNodeWithChildren
,EqualListElementTerminalNode
,EqualReferenceListElementTerminalNode
public interface IPartialEqualNode extends IMergeRulePartialModelNode
Partial node where objects are not assumed to be changed during the merge process, i.e. stay "equal" with the previous state.Such node is built by an object from the original model, not by comparison node. The model object to build the node is selected by the following algorithm:
- if the objects in MAIN and OTHER sides are equal, then take MAIN object;
- if the object presents only in MAIN side, take it;
- otherwise the object presents only in OTHER side, take it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComparisonSide
getModelObjectSide()
Returns the side (MAIN or OTHER) where the model object presents and the partial node is built for.org.eclipse.emf.ecore.EObject
retrieveModelObject(ComparisonContext comparisonContext)
Retrieves model object the node is built for.-
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, check, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getImage, getLabel, getNodeId, getParent, getSide, getSideLabel, getSortedChildren, getStatus, getTooltipText, hasChildren, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
Method Detail
-
retrieveModelObject
org.eclipse.emf.ecore.EObject retrieveModelObject(ComparisonContext comparisonContext)
Retrieves model object the node is built for.- Parameters:
comparisonContext
- the comparison context, nevernull
- Returns:
- the model object, never
null
-
getModelObjectSide
ComparisonSide getModelObjectSide()
Returns the side (MAIN or OTHER) where the model object presents and the partial node is built for.- Returns:
- the MAIN or OTHER side, never COMMON_ANCESTOR, never
null
-
-