Class EmfFeatureTerminalNode
- 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
-
- All Implemented Interfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialFeatureNode
,IPartialModelNode
- Direct Known Subclasses:
EqualEmfFeatureTerminalNode
public class EmfFeatureTerminalNode extends AbstractNodeWithLabels implements IPartialFeatureNode
A terminal (non-expandable) partial model node corresponding to a EMF structural feature.
-
-
Constructor Summary
Constructors Modifier Constructor Description EmfFeatureTerminalNode(IPartialModelNode parent, ComparisonNode comparisonNode, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given comparison node.protected
EmfFeatureTerminalNode(IPartialModelNode parent, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature feature, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given feature and the comparison node.protected
EmfFeatureTerminalNode(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, String label, ComparisonSide objectSide, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node when no comparison node is given.
-
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.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.AbstractNodeWithLabels
addChild, getAvailableMergeRules, getImage, getMergeRule, getSideLabel, 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, check, getChildren, getClosestDirectParent, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, getSide, 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, check, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getImage, getNodeId, getParent, getSide, getSideLabel, getSortedChildren, getStatus, getTooltipText, hasChildren, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
Constructor Detail
-
EmfFeatureTerminalNode
public EmfFeatureTerminalNode(IPartialModelNode parent, ComparisonNode comparisonNode, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given comparison node.- Parameters:
parent
- the parent partial model nodecomparisonNode
- the comparison node, notnull
mainLabel
- representation of the main sideotherLabel
- representation of the other sideimageProvider
- the image providercomparisonSession
- the comparison session
-
EmfFeatureTerminalNode
protected EmfFeatureTerminalNode(IPartialModelNode parent, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature feature, String mainLabel, String otherLabel, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node for the given feature and the comparison node.- Parameters:
parent
- the parent partial model nodecomparisonNode
- the comparisonNodefeature
- the feature to construct the node for, notnull
mainLabel
- representation of the main sideotherLabel
- representation of the other sideimageProvider
- the image providercomparisonSession
- the comparison session
-
EmfFeatureTerminalNode
protected EmfFeatureTerminalNode(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, String label, ComparisonSide objectSide, IImageProvider imageProvider, IComparisonSession comparisonSession)
Constructs a node when no comparison node is given.- Parameters:
parent
- the parent partial model nodefeature
- the feature to construct the node for, notnull
label
- the object's representationobjectSide
- the object sideimageProvider
- the image providercomparisonSession
- the comparison session
-
-
Method Detail
-
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
-
-