Class ContainmentReferenceChangeAccessorImpl
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
-
- org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.impl.AbstractStructuralFeatureAccessor
-
- org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.impl.ContainmentReferenceChangeAccessorImpl
-
- All Implemented Interfaces:
ICompareAccessor
,IStructuralFeatureAccessor
,ITypedElement
public class ContainmentReferenceChangeAccessorImpl extends AbstractStructuralFeatureAccessor
A specificAbstractStructuralFeatureAccessor
for containmentReferenceChange
objects.- Since:
- 4.0
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
-
-
Constructor Summary
Constructors Constructor Description ContainmentReferenceChangeAccessorImpl(AdapterFactory adapterFactory, Diff diff, IMergeViewer.MergeViewerSide side)
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.collect.ImmutableList<Diff>
computeDifferences()
Compute the differences that apply on the structural feature.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
getType()
Returns the type of this object.-
Methods inherited from class org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.impl.AbstractStructuralFeatureAccessor
getAffectedFeature, getComparison, getDifferences, getEObject, getImage, getInitialDiff, getName, getSide, getStructuralFeature
-
Methods inherited from class org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
getAdapterFactory, getItemDelegator, getRootAdapterFactory
-
-
-
-
Constructor Detail
-
ContainmentReferenceChangeAccessorImpl
public ContainmentReferenceChangeAccessorImpl(AdapterFactory adapterFactory, Diff diff, IMergeViewer.MergeViewerSide side)
.
-
-
Method Detail
-
computeDifferences
protected com.google.common.collect.ImmutableList<Diff> computeDifferences()
Compute the differences that apply on the structural feature.- Overrides:
computeDifferences
in classAbstractStructuralFeatureAccessor
- Returns:
- the list of diff that apply on the structural feature.
-
getInitialItem
public IMergeViewerItem getInitialItem()
Returns the initial item of this accessor.- Specified by:
getInitialItem
in interfaceICompareAccessor
- Overrides:
getInitialItem
in classAbstractStructuralFeatureAccessor
- Returns:
- the initial item of this accessor.
- See Also:
ICompareAccessor.getInitialItem()
-
getItems
public com.google.common.collect.ImmutableList<? extends IMergeViewerItem> getItems()
Returns the list of items known by this accessor.- Returns:
- the list of items known by this accessor.
- See Also:
ICompareAccessor.getItems()
-
getType
public String getType()
Returns the type of this object. For objects with a file name this is typically the file extension. For folders its the constantFOLDER_TYPE
. The type is used for determining a suitable viewer for this object.- Specified by:
getType
in interfaceITypedElement
- Overrides:
getType
in classAbstractStructuralFeatureAccessor
- Returns:
- the type of this object
- See Also:
ITypedElement.getType()
-
-