public class ResourceLocationChangeAccessorImpl extends AbstractTypedElementAdapter implements ICompareAccessor
IResourceContentsAccessor
for ResourceLocationChange
objects.FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
Constructor and Description |
---|
ResourceLocationChangeAccessorImpl(AdapterFactory adapterFactory,
ResourceLocationChange diff,
IMergeViewer.MergeViewerSide side) |
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.
|
String |
getType()
Returns the type of this object.
|
getAdapterFactory, getItemDelegator, getRootAdapterFactory
public ResourceLocationChangeAccessorImpl(AdapterFactory adapterFactory, ResourceLocationChange diff, IMergeViewer.MergeViewerSide side)
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()
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()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.