Class EqualEmfFeatureTerminalNode
- 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.EmfFeatureTerminalNode
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.EqualEmfFeatureTerminalNode
-
- All Implemented Interfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialEqualFeatureNode
,IPartialEqualNode
,IPartialFeatureNode
,IPartialModelNode
public class EqualEmfFeatureTerminalNode extends EmfFeatureTerminalNode implements IPartialEqualFeatureNode
A terminal (non-expandable) equal partial model node corresponding to a EMF structural feature.
-
-
Constructor Summary
Constructors Constructor Description EqualEmfFeatureTerminalNode(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonSide objectSide, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given 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.EmfFeatureTerminalNode
getFeature, getLabel, setCustomLabel
-
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.IPartialFeatureNode
getFeature, setCustomLabel
-
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
-
EqualEmfFeatureTerminalNode
public EqualEmfFeatureTerminalNode(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonSide objectSide, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given feature.- Parameters:
parent
- the parent partial model nodefeature
- the feature to construct the node for, notnull
objectSide
- the side where the object presents ornull
if it presents on both sidesmainLabel
- the object's representation from the MAIN sideotherLabel
- the object's representation from the OTHER sideimageProvider
- the image providercomparisonSession
- the comparison session
-
-
Method Detail
-
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
-
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
-
-