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
A specific
AbstractStructuralFeatureAccessor for containment
ReferenceChange 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
ConstructorsConstructorDescriptionContainmentReferenceChangeAccessorImpl(AdapterFactory adapterFactory, Diff diff, IMergeViewer.MergeViewerSide side) . -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.collect.ImmutableList<Diff>Compute the differences that apply on the structural feature.Returns the initial item of this accessor.com.google.common.collect.ImmutableList<? extends IMergeViewerItem>getItems()Returns the list of items known by this accessor.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, getStructuralFeatureMethods inherited from class org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
getAdapterFactory, getItemDelegator, getRootAdapterFactory
-
Constructor Details
-
ContainmentReferenceChangeAccessorImpl
public ContainmentReferenceChangeAccessorImpl(AdapterFactory adapterFactory, Diff diff, IMergeViewer.MergeViewerSide side) .
-
-
Method Details
-
computeDifferences
Compute the differences that apply on the structural feature.- Overrides:
computeDifferencesin classAbstractStructuralFeatureAccessor- Returns:
- the list of diff that apply on the structural feature.
-
getInitialItem
Returns the initial item of this accessor.- Specified by:
getInitialItemin interfaceICompareAccessor- Overrides:
getInitialItemin classAbstractStructuralFeatureAccessor- Returns:
- the initial item of this accessor.
- See Also:
-
getItems
Returns the list of items known by this accessor.- Returns:
- the list of items known by this accessor.
- See Also:
-
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:
getTypein interfaceITypedElement- Overrides:
getTypein classAbstractStructuralFeatureAccessor- Returns:
- the type of this object
- See Also:
-