Interface IMergeViewerItem
- All Superinterfaces:
Adapter
- All Known Subinterfaces:
IMergeViewerItem.Container
- All Known Implementing Classes:
MergeViewerItem
,MergeViewerItem.Container
,ResourceAttachmentChangeMergeViewerItem
An IMergeViewerItem associate a Diff and its left side, right side and ancestor side values. An
IMergeViewerItem also known its parent.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.common.base.Predicate<IMergeViewerItem>
A predicate to know if the given Item is an insertion point. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ancestor side value of the Diff.getDiff()
The Diff associated with the Item.getLeft()
Returns the left side value of the Diff.Returns the parent of this element.getRight()
Returns the right side value of the Diff.getSide()
Returns the side of the Diff.Returns the appropriate value according to the given side.boolean
Returns true if the Item is an insertion point, false otherwise.Methods inherited from interface org.eclipse.emf.common.notify.Adapter
getTarget, isAdapterForType, notifyChanged, setTarget
-
Field Details
-
IS_INSERTION_POINT
A predicate to know if the given Item is an insertion point.
-
-
Method Details
-
getDiff
Diff getDiff()The Diff associated with the Item.- Returns:
- the Diff associated with the Item.
-
getLeft
Object getLeft()Returns the left side value of the Diff.- Returns:
- the left side value of the Diff.
-
getRight
Object getRight()Returns the right side value of the Diff.- Returns:
- the right side value of the Diff.
-
getAncestor
Object getAncestor()Returns the ancestor side value of the Diff.- Returns:
- the ancestor side value of the Diff.
-
getSideValue
Returns the appropriate value according to the given side.- Parameters:
side
- the given side.- Returns:
- the appropriate value according to the given side.
-
getSide
IMergeViewer.MergeViewerSide getSide()Returns the side of the Diff.- Returns:
- the side of the Diff.
-
isInsertionPoint
boolean isInsertionPoint()Returns true if the Item is an insertion point, false otherwise.- Returns:
- true if the Item is an insertion point, false otherwise.
-
getParent
IMergeViewerItem.Container getParent()Returns the parent of this element. If the object is the root of a hierarchynull
is returned.- Returns:
- the parent of this element, or
null
if the element has no parent
-
IMergeViewerItemContentProvider
.