Package com._1c.g5.v8.dt.compare.ui
Class AbstractCompareTypedElement
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.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 basicITypedElement
abstraction for the comparison.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCompareTypedElement(String name)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCharset()
org.eclipse.swt.graphics.Image
getImage()
String
getName()
String
getType()
void
setCharset(String charset)
Sets the given charset.void
setImage(org.eclipse.swt.graphics.Image image)
Sets the given image.void
setType(String type)
Sets the given type.
-
-
-
Constructor Detail
-
AbstractCompareTypedElement
protected AbstractCompareTypedElement(String name)
Creates a new instance.- Parameters:
name
- the typed element name, may benull
-
-
Method Detail
-
getCharset
public String getCharset() throws org.eclipse.core.runtime.CoreException
- Specified by:
getCharset
in interfaceorg.eclipse.compare.IEncodedStreamContentAccessor
- Throws:
org.eclipse.core.runtime.CoreException
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.compare.ITypedElement
-
getImage
public org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImage
in interfaceorg.eclipse.compare.ITypedElement
-
getType
public String getType()
- Specified by:
getType
in interfaceorg.eclipse.compare.ITypedElement
-
setCharset
public void setCharset(String charset)
Sets the given charset.- Parameters:
charset
- the given charset to set, cannot benull
- 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 benull
- See Also:
ITypedElement.getImage()
-
setType
public void setType(String type)
Sets the given type.- Parameters:
type
- the given type to set, cannot benull
- See Also:
ITypedElement.getType()
-
-