Class AbstractStructuralFeatureAccessor

    • Constructor Detail

      • AbstractStructuralFeatureAccessor

        public AbstractStructuralFeatureAccessor​(AdapterFactory adapterFactory,
                                                 Diff diff,
                                                 IMergeViewer.MergeViewerSide side)
        Default constructor.
        Parameters:
        adapterFactory - the adapater factory used to create the accessor.
        diff - the diff associated with this accessor.
        side - the side of the accessor.
    • Method Detail

      • getDifferences

        protected final com.google.common.collect.ImmutableList<Diff> getDifferences()
        Returns the list of diff that apply on the structural feature.
        Returns:
        the list of diff that apply on the structural feature.
      • computeDifferences

        protected com.google.common.collect.ImmutableList<Diff> computeDifferences()
        Compute the differences that apply on the structural feature.
        Returns:
        the list of diff that apply on the structural feature.
      • getAffectedFeature

        protected EStructuralFeature getAffectedFeature​(Diff diff)
        Returns the structural feature affected by the given diff, if any.
        Parameters:
        diff - The diff from which we need to retrieve a feature.
        Returns:
        The feature affected by this diff, if any. null if none.
      • getInitialDiff

        protected final Diff getInitialDiff()
        Returns the initial diff associated with this accessor.
        Returns:
        the initial diff.
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Returns an image for this object. This image is used when displaying this object in the UI.
        Specified by:
        getImage in interface ITypedElement
        Returns:
        the image of this object or null if this type of input has no image
        See Also:
        ITypedElement.getImage()
      • 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 constant FOLDER_TYPE. The type is used for determining a suitable viewer for this object.
        Specified by:
        getType in interface ITypedElement
        Returns:
        the type of this object
        See Also:
        ITypedElement.getType()