public abstract class AbstractStructuralFeatureAccessor extends AbstractTypedElementAdapter implements IStructuralFeatureAccessor
IStructuralFeatureAccessor.FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE| Constructor and Description |
|---|
AbstractStructuralFeatureAccessor(AdapterFactory adapterFactory,
Diff diff,
IMergeViewer.MergeViewerSide side)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.collect.ImmutableList<Diff> |
computeDifferences()
Compute the differences that apply on the structural feature.
|
protected EStructuralFeature |
getAffectedFeature(Diff diff)
Returns the structural feature affected by the given diff, if any.
|
Comparison |
getComparison()
Returns the comparison object used by this accessor.
|
protected com.google.common.collect.ImmutableList<Diff> |
getDifferences()
Returns the list of diff that apply on the structural feature.
|
EObject |
getEObject(IMergeViewer.MergeViewerSide side)
Returns the EObject associated with the structural feature.
|
Image |
getImage()
Returns an image for this object.
|
protected Diff |
getInitialDiff()
Returns the initial diff associated with this accessor.
|
IMergeViewerItem |
getInitialItem()
Returns the initial item of this accessor.
|
String |
getName()
Returns the name of this object.
|
protected IMergeViewer.MergeViewerSide |
getSide()
Returns the side of the accessor.
|
EStructuralFeature |
getStructuralFeature()
Returns the structural feature for which an accessor is needed.
|
String |
getType()
Returns the type of this object.
|
getAdapterFactory, getItemDelegator, getRootAdapterFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetItemspublic AbstractStructuralFeatureAccessor(AdapterFactory adapterFactory, Diff diff, IMergeViewer.MergeViewerSide side)
adapterFactory - the adapater factory used to create the accessor.diff - the diff associated with this accessor.side - the side of the accessor.public Comparison getComparison()
getComparison in interface ICompareAccessorICompareAccessor.getComparison()public IMergeViewerItem getInitialItem()
getInitialItem in interface ICompareAccessorICompareAccessor.getInitialItem()public EObject getEObject(IMergeViewer.MergeViewerSide side)
getEObject in interface IStructuralFeatureAccessorside - the side of the content merge viewer for which we want the EObject associated with the
structural feature.ICompareAccessor.getInitialItem()public EStructuralFeature getStructuralFeature()
getStructuralFeature in interface IStructuralFeatureAccessorIStructuralFeatureAccessor.getStructuralFeature()protected final IMergeViewer.MergeViewerSide getSide()
protected final com.google.common.collect.ImmutableList<Diff> getDifferences()
protected com.google.common.collect.ImmutableList<Diff> computeDifferences()
protected EStructuralFeature getAffectedFeature(Diff diff)
diff - The diff from which we need to retrieve a feature.diff, if any. null if none.protected final Diff getInitialDiff()
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()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.