Class AbstractCompareTypedElement

  • All Implemented Interfaces:
    org.eclipse.compare.IEncodedStreamContentAccessor, org.eclipse.compare.IStreamContentAccessor, org.eclipse.compare.ITypedElement
    Direct Known Subclasses:
    ComparisonDataSourceBasedTypedElement, StringBasedTypedElement

    public abstract class AbstractCompareTypedElement
    extends Object
    implements org.eclipse.compare.ITypedElement, org.eclipse.compare.IEncodedStreamContentAccessor
    The basic ITypedElement abstraction for the comparison.
    • Constructor Detail

      • AbstractCompareTypedElement

        protected AbstractCompareTypedElement​(String name)
        Creates a new instance.
        Parameters:
        name - the typed element name, may be null
    • Method Detail

      • getCharset

        public String getCharset()
                          throws org.eclipse.core.runtime.CoreException
        Specified by:
        getCharset in interface org.eclipse.compare.IEncodedStreamContentAccessor
        Throws:
        org.eclipse.core.runtime.CoreException
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.compare.ITypedElement
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Specified by:
        getImage in interface org.eclipse.compare.ITypedElement
      • getType

        public String getType()
        Specified by:
        getType in interface org.eclipse.compare.ITypedElement
      • setCharset

        public void setCharset​(String charset)
        Sets the given charset.
        Parameters:
        charset - the given charset to set, cannot be null
        See Also:
        IEncodedStreamContentAccessor.getCharset()
      • setImage

        public void setImage​(org.eclipse.swt.graphics.Image image)
        Sets the given image.
        Parameters:
        image - the given image to set, cannot be null
        See Also:
        ITypedElement.getImage()
      • setType

        public void setType​(String type)
        Sets the given type.
        Parameters:
        type - the given type to set, cannot be null
        See Also:
        ITypedElement.getType()