public interface IMergeViewerItem extends Adapter
Modifier and Type | Interface and Description |
---|---|
static interface |
IMergeViewerItem.Container
An IMergeViewerItem.Container knows its children.
|
Adapter.Internal
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<IMergeViewerItem> |
IS_INSERTION_POINT
A predicate to know if the given Item is an insertion point.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAncestor()
Returns the ancestor side value of the Diff.
|
Diff |
getDiff()
The Diff associated with the Item.
|
Object |
getLeft()
Returns the left side value of the Diff.
|
IMergeViewerItem.Container |
getParent()
Returns the parent of this element.
|
Object |
getRight()
Returns the right side value of the Diff.
|
IMergeViewer.MergeViewerSide |
getSide()
Returns the side of the Diff.
|
Object |
getSideValue(IMergeViewer.MergeViewerSide side)
Returns the appropriate value according to the given side.
|
boolean |
isInsertionPoint()
Returns true if the Item is an insertion point, false otherwise.
|
getTarget, isAdapterForType, notifyChanged, setTarget
static final com.google.common.base.Predicate<IMergeViewerItem> IS_INSERTION_POINT
Diff getDiff()
Object getLeft()
Object getRight()
Object getAncestor()
Object getSideValue(IMergeViewer.MergeViewerSide side)
side
- the given side.IMergeViewer.MergeViewerSide getSide()
boolean isInsertionPoint()
IMergeViewerItem.Container getParent()
null
is
returned.null
if the element has no parent
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.