Class ExternalPropertyPartialModelNode
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNodeWithChildren
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractDirectPartialModelNode
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.node.ExternalPropertyPartialModelNode
-
- All Implemented Interfaces:
IComparedElement
,IDirectPartialModelNode
,IMergeRulePartialModelNode
,IPartialFeatureNode
,IPartialModelNode
public class ExternalPropertyPartialModelNode extends AbstractDirectPartialModelNode implements IPartialFeatureNode
A direct node representing an external property of an EMF object.
-
-
Constructor Summary
Constructors Constructor Description ExternalPropertyPartialModelNode(IPartialModelNode parent, ExternalPropertyComparisonNode comparisonNode, IComparisonSession comparisonSession)
Constructs a node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHaveChildren()
Checks if this node can have children.List<MergeRule>
getAvailableMergeRules()
Returns list of available merge rules.org.eclipse.emf.ecore.EStructuralFeature
getFeature()
Returns feature for which this node relates to.org.eclipse.swt.graphics.Image
getImage()
Returns the node image.String
getLabel()
Returns the node label.MergeRule
getMergeRule()
Returns the merge rule.String
getSideLabel(ComparisonSide side)
Returns a label (textual representation) of the value referred from the specified side of the node.boolean
hasChildren()
Checks if the node has child nodes.void
setCustomLabel(String label)
Sets the custom label to be displayed for the node.void
setExpandable(boolean value)
Sets the node as expandable (i.e.void
setImageProvider(IImageProvider imageProvider)
Sets the image provider.void
setMergeRule(MergeRule rule)
Sets the merge rule.void
setShowMergeRule(boolean value)
Sets custom flag of merge rule showing for this node.boolean
showMergeRule()
Checks whether the merge rule should be shown for this node.-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractDirectPartialModelNode
getChildFeaturesOrderDefiningList, getTooltipText, hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchanged, isCheckable, isChecked, prioritize, setChecked
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNodeWithChildren
addChild, getChildren, getSortedChildren, getStatus, isGrayed, removeChild, setGrayed, setStatus, to, to
-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
canExpand, check, getClosestDirectParent, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, getSide, 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.IDirectPartialModelNode
setGrayed
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IPartialModelNode
addChild, canExpand, check, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, getSide, getSortedChildren, getStatus, getTooltipText, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
Constructor Detail
-
ExternalPropertyPartialModelNode
public ExternalPropertyPartialModelNode(IPartialModelNode parent, ExternalPropertyComparisonNode comparisonNode, IComparisonSession comparisonSession)
Constructs a node.- Parameters:
parent
- the parent node, can benull
comparisonNode
- the comparison node this mode will be based on, cannot benull
comparisonSession
- the comparison session, cannot benull
-
-
Method Detail
-
canHaveChildren
public boolean canHaveChildren()
Description copied from interface:IDirectPartialModelNode
Checks if this node can have children.- Specified by:
canHaveChildren
in interfaceIDirectPartialModelNode
- Returns:
true
if the node can have children
-
getLabel
public String getLabel()
Description copied from interface:IPartialModelNode
Returns the node label.- Specified by:
getLabel
in interfaceIPartialModelNode
- Overrides:
getLabel
in classAbstractDirectPartialModelNode
- Returns:
- the node label
-
getImage
public org.eclipse.swt.graphics.Image getImage()
Description copied from interface:IPartialModelNode
Returns the node image.- Specified by:
getImage
in interfaceIPartialModelNode
- Overrides:
getImage
in classAbstractPartialModelNode
- Returns:
- the node image
-
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 classAbstractDirectPartialModelNode
- Parameters:
side
- the side of the node- Returns:
- a label
-
hasChildren
public boolean hasChildren()
Description copied from interface:IPartialModelNode
Checks if the node has child nodes.- Specified by:
hasChildren
in interfaceIPartialModelNode
- Overrides:
hasChildren
in classAbstractPartialModelNodeWithChildren
- Returns:
true
if the node has children, andfalse
otherwise
-
getMergeRule
public MergeRule getMergeRule()
Description copied from interface:IMergeRulePartialModelNode
Returns the merge rule.- Specified by:
getMergeRule
in interfaceIMergeRulePartialModelNode
- Returns:
- the merge rule
-
getAvailableMergeRules
public List<MergeRule> getAvailableMergeRules()
Description copied from interface:IMergeRulePartialModelNode
Returns list of available merge rules.- Specified by:
getAvailableMergeRules
in interfaceIMergeRulePartialModelNode
- Returns:
- list of available merge rules
-
setMergeRule
public void setMergeRule(MergeRule rule)
Description copied from interface:IMergeRulePartialModelNode
Sets the merge rule.- Specified by:
setMergeRule
in interfaceIMergeRulePartialModelNode
- Parameters:
rule
- the merge rule
-
setExpandable
public void setExpandable(boolean value)
Description copied from interface:IDirectPartialModelNode
Sets the node as expandable (i.e. that it can have children).- Specified by:
setExpandable
in interfaceIDirectPartialModelNode
- Overrides:
setExpandable
in classAbstractDirectPartialModelNode
- Parameters:
value
- the value to set
-
setImageProvider
public void setImageProvider(IImageProvider imageProvider)
Description copied from interface:IDirectPartialModelNode
Sets the image provider.- Specified by:
setImageProvider
in interfaceIDirectPartialModelNode
- Overrides:
setImageProvider
in classAbstractDirectPartialModelNode
- Parameters:
imageProvider
- the image provider, may benull
-
showMergeRule
public boolean showMergeRule()
Description copied from interface:IMergeRulePartialModelNode
Checks whether the merge rule should be shown for this node.- Specified by:
showMergeRule
in interfaceIMergeRulePartialModelNode
- Returns:
true
to show merge rule, andfalse
otherwise
-
setShowMergeRule
public void setShowMergeRule(boolean value)
Description copied from interface:IMergeRulePartialModelNode
Sets custom flag of merge rule showing for this node.- Specified by:
setShowMergeRule
in interfaceIMergeRulePartialModelNode
- Parameters:
value
-true
to show merge rule by default,false
to always hide the merge rule
-
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
-
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
-
-