Package com._1c.g5.v8.dt.compare.ui.util
Class PathPart
java.lang.Object
com._1c.g5.v8.dt.compare.ui.util.PathPart
Represents part of a path between two nodes in the comparison tree.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPathPart
(org.eclipse.emf.ecore.EStructuralFeature feature, int position) Creates new path part. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObject
getObject
(org.eclipse.emf.ecore.EObject parent) Returns object under stored path part.
-
Field Details
-
feature
public final org.eclipse.emf.ecore.EStructuralFeature feature -
position
public final int position
-
-
Constructor Details
-
PathPart
public PathPart(org.eclipse.emf.ecore.EStructuralFeature feature, int position) Creates new path part.- Parameters:
feature
- the feature related to the node, cannot benull
position
- the position of the node in many-feature parent or -1
-
-
Method Details
-
getObject
public org.eclipse.emf.ecore.EObject getObject(org.eclipse.emf.ecore.EObject parent) Returns object under stored path part.- Parameters:
parent
- the parent model object, cannot benull
- Returns:
- the child model object accessed by the stored path part, never
null
-