Class EqualEmfFeatureNodeWithChildren
- 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.AbstractNodeWithLabelsAndChildren
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractEqualNodeWithChildren
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.EqualEmfFeatureNodeWithChildren
-
- All Implemented Interfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialEqualFeatureNode
,IPartialEqualNode
,IPartialFeatureNode
,IPartialModelNode
public class EqualEmfFeatureNodeWithChildren extends AbstractEqualNodeWithChildren implements IPartialEqualFeatureNode
An expandable equal partial model node corresponding to a EMF structural feature.
-
-
Constructor Summary
Constructors Constructor Description EqualEmfFeatureNodeWithChildren(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject modelObject, ComparisonSide objectSide, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given feature and corresponding object Id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EStructuralFeature
getFeature()
Returns feature for which this node relates to.String
getLabel()
Returns the node label.String
getSideLabel(ComparisonSide side)
Returns a label (textual representation) of the value referred from the specified side of the node.void
setCustomLabel(String label)
Sets the custom label to be displayed for the node.-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractEqualNodeWithChildren
check, getModelObjectSide, getSide, retrieveModelObject
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractNodeWithLabelsAndChildren
addChild, canExpand, getChildren, getSortedChildren, hasChildren, isGrayed, removeChild, setGrayed
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractNodeWithLabels
getAvailableMergeRules, getImage, getMergeRule, getStatus, getTooltipText, hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchanged, isCheckable, isChecked, setChecked, setMergeRule, setShowMergeRule, setStatus, showMergeRule
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
getClosestDirectParent, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, 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.IPartialEqualNode
getModelObjectSide, retrieveModelObject
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IPartialModelNode
addChild, canExpand, check, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getImage, getNodeId, getParent, getSide, getSortedChildren, getStatus, getTooltipText, hasChildren, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
Constructor Detail
-
EqualEmfFeatureNodeWithChildren
public EqualEmfFeatureNodeWithChildren(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject modelObject, ComparisonSide objectSide, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given feature and corresponding object Id.- Parameters:
parent
- the parent partial model nodefeature
- the feature to construct the node for, notnull
modelObject
- the model object under the feature, 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
-
getLabel
public String getLabel()
Description copied from interface:IPartialModelNode
Returns the node label.- Specified by:
getLabel
in interfaceIPartialModelNode
- Overrides:
getLabel
in classAbstractNodeWithLabels
- Returns:
- the node label
-
setCustomLabel
public void setCustomLabel(String label)
Description copied from interface:IPartialFeatureNode
Sets the custom label to be displayed for the node.- Specified by:
setCustomLabel
in interfaceIPartialFeatureNode
- Parameters:
label
- the label to be displayed, can benull
to reset the custom label
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
Description copied from interface:IPartialFeatureNode
Returns feature for which this node relates to.- Specified by:
getFeature
in interfaceIPartialFeatureNode
- Returns:
- the corresponding feature, never
null
-
-