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, getRootAdapterFactory
public 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 ITypedElement
ITypedElement.getName()
public Image getImage()
getImage
in interface ITypedElement
null
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 ITypedElement
ITypedElement.getType()
public Comparison getComparison()
getComparison
in interface ICompareAccessor
ICompareAccessor.getComparison()
public IMergeViewerItem getInitialItem()
getInitialItem
in interface ICompareAccessor
ICompareAccessor.getInitialItem()
public com.google.common.collect.ImmutableList<? extends IMergeViewerItem> getItems()
getItems
in interface ICompareAccessor
ICompareAccessor.getItems()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.