public class MatchAccessor extends AbstractTypedElementAdapter implements ICompareAccessor
ICompareAccessor for Match objects.FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE| Constructor and Description |
|---|
MatchAccessor(AdapterFactory adapterFactory,
Match match,
IMergeViewer.MergeViewerSide side)
Creates a new object wrapping the given
eObject. |
| Modifier and Type | Method and Description |
|---|---|
Comparison |
getComparison()
Returns the comparison object used by this accessor.
|
Image |
getImage()
Returns an image for this object.
|
IMergeViewerItem |
getInitialItem()
Returns the initial item of this accessor.
|
com.google.common.collect.ImmutableList<? extends IMergeViewerItem> |
getItems()
Returns the list of items known by this accessor.
|
String |
getName()
Returns the name of this object.
|
protected IMergeViewer.MergeViewerSide |
getSide()
Returns the side of this accessor.
|
String |
getType()
Returns the type of this object.
|
getAdapterFactory, getItemDelegator, getRootAdapterFactorypublic MatchAccessor(AdapterFactory adapterFactory, Match match, IMergeViewer.MergeViewerSide side)
eObject.adapterFactory - the adapter factory used to create the accessor.match - the match to associate with this accessor.side - the side of this accessor.protected final IMergeViewer.MergeViewerSide getSide()
public String getName()
getName in interface ITypedElementITypedElement.getName()public Image getImage()
getImage in interface ITypedElementnull if this type of input has no imageITypedElement.getImage()public String getType()
FOLDER_TYPE. The type is used for determining a suitable viewer
for this object.getType in interface ITypedElementITypedElement.getType()public Comparison getComparison()
getComparison in interface ICompareAccessorICompareAccessor.getComparison()public IMergeViewerItem getInitialItem()
getInitialItem in interface ICompareAccessorICompareAccessor.getInitialItem()public com.google.common.collect.ImmutableList<? extends IMergeViewerItem> getItems()
getItems in interface ICompareAccessorICompareAccessor.getItems()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.