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
ConstructorsConstructorDescriptionExternalPropertyPartialModelNode(IPartialModelNode parent, ExternalPropertyComparisonNode comparisonNode, IComparisonSession comparisonSession) Constructs a node. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this node can have children.Returns list of available merge rules.org.eclipse.emf.ecore.EStructuralFeatureReturns feature for which this node relates to.org.eclipse.swt.graphics.ImagegetImage()Returns the node image.getLabel()Returns the node label.Returns the merge rule.getSideLabel(ComparisonSide side) Returns a label (textual representation) of the value referred from the specified side of the node.booleanChecks if the node has child nodes.voidsetCustomLabel(String label) Sets the custom label to be displayed for the node.voidsetExpandable(boolean value) Sets the node as expandable (i.e. that it can have children).voidsetImageProvider(IImageProvider imageProvider) Sets the image provider.voidsetMergeRule(MergeRule rule) Sets the merge rule.voidsetShowMergeRule(boolean value) Sets custom flag of merge rule showing for this node.booleanChecks 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, setCheckedMethods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNodeWithChildren
addChild, getChildren, getSortedChildren, getStatus, isGrayed, removeChild, setGrayed, setStatus, to, toMethods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.node.AbstractPartialModelNode
canExpand, check, getClosestDirectParent, getComparisonSession, getCustomMergeSettingsStatus, getNodeId, getParent, getSide, retrieveComparisonNode, setCustomMergeSettingsStatus, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.compare.model.IComparedElement
hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchangedMethods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IDirectPartialModelNode
setGrayedMethods 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 Details
-
ExternalPropertyPartialModelNode
public ExternalPropertyPartialModelNode(IPartialModelNode parent, ExternalPropertyComparisonNode comparisonNode, IComparisonSession comparisonSession) Constructs a node.- Parameters:
parent- the parent node, can benullcomparisonNode- the comparison node this mode will be based on, cannot benullcomparisonSession- the comparison session, cannot benull
-
-
Method Details
-
canHaveChildren
public boolean canHaveChildren()Description copied from interface:IDirectPartialModelNodeChecks if this node can have children.- Specified by:
canHaveChildrenin interfaceIDirectPartialModelNode- Returns:
trueif the node can have children
-
getLabel
Description copied from interface:IPartialModelNodeReturns the node label.- Specified by:
getLabelin interfaceIPartialModelNode- Overrides:
getLabelin classAbstractDirectPartialModelNode- Returns:
- the node label
-
getImage
public org.eclipse.swt.graphics.Image getImage()Description copied from interface:IPartialModelNodeReturns the node image.- Specified by:
getImagein interfaceIPartialModelNode- Overrides:
getImagein classAbstractPartialModelNode- Returns:
- the node image
-
getSideLabel
Description copied from interface:IPartialModelNodeReturns a label (textual representation) of the value referred from the specified side of the node.- Specified by:
getSideLabelin interfaceIPartialModelNode- Overrides:
getSideLabelin classAbstractDirectPartialModelNode- Parameters:
side- the side of the node- Returns:
- a label
-
hasChildren
public boolean hasChildren()Description copied from interface:IPartialModelNodeChecks if the node has child nodes.- Specified by:
hasChildrenin interfaceIPartialModelNode- Overrides:
hasChildrenin classAbstractPartialModelNodeWithChildren- Returns:
trueif the node has children, andfalseotherwise
-
getMergeRule
Description copied from interface:IMergeRulePartialModelNodeReturns the merge rule.- Specified by:
getMergeRulein interfaceIMergeRulePartialModelNode- Returns:
- the merge rule
-
getAvailableMergeRules
Description copied from interface:IMergeRulePartialModelNodeReturns list of available merge rules.- Specified by:
getAvailableMergeRulesin interfaceIMergeRulePartialModelNode- Returns:
- list of available merge rules
-
setMergeRule
Description copied from interface:IMergeRulePartialModelNodeSets the merge rule.- Specified by:
setMergeRulein interfaceIMergeRulePartialModelNode- Parameters:
rule- the merge rule
-
setExpandable
public void setExpandable(boolean value) Description copied from interface:IDirectPartialModelNodeSets the node as expandable (i.e. that it can have children).- Specified by:
setExpandablein interfaceIDirectPartialModelNode- Overrides:
setExpandablein classAbstractDirectPartialModelNode- Parameters:
value- the value to set
-
setImageProvider
Description copied from interface:IDirectPartialModelNodeSets the image provider.- Specified by:
setImageProviderin interfaceIDirectPartialModelNode- Overrides:
setImageProviderin classAbstractDirectPartialModelNode- Parameters:
imageProvider- the image provider, may benull
-
showMergeRule
public boolean showMergeRule()Description copied from interface:IMergeRulePartialModelNodeChecks whether the merge rule should be shown for this node.- Specified by:
showMergeRulein interfaceIMergeRulePartialModelNode- Returns:
trueto show merge rule, andfalseotherwise
-
setShowMergeRule
public void setShowMergeRule(boolean value) Description copied from interface:IMergeRulePartialModelNodeSets custom flag of merge rule showing for this node.- Specified by:
setShowMergeRulein interfaceIMergeRulePartialModelNode- Parameters:
value-trueto show merge rule by default,falseto always hide the merge rule
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()Description copied from interface:IPartialFeatureNodeReturns feature for which this node relates to.- Specified by:
getFeaturein interfaceIPartialFeatureNode- Returns:
- the corresponding feature, never
null
-
setCustomLabel
Description copied from interface:IPartialFeatureNodeSets the custom label to be displayed for the node.- Specified by:
setCustomLabelin interfaceIPartialFeatureNode- Parameters:
label- the label to be displayed, can benullto reset the custom label
-