public interface ITypedElement
These methods are typically used to present an input object in the compare UI (getName
and
getImage
) and for finding a viewer for a given input type (getType
).
Clients may implement this interface.
Modifier and Type | Field and Description |
---|---|
static String |
FOLDER_TYPE
Type for a folder input (value
"FOLDER" ). |
static String |
TEXT_TYPE
Type for an element whose actual type is text (value
"txt" ). |
static String |
UNKNOWN_TYPE
Type for an element whose actual type could not be determined.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Image |
getImage()
Returns an image for this object.
|
String |
getName()
Returns the name of this object.
|
String |
getType()
Returns the type of this object.
|
static final String FOLDER_TYPE
"FOLDER"
). Folders are comparison elements that have no
contents, only a name and children.static final String TEXT_TYPE
"txt"
).static final String UNKNOWN_TYPE
"???"
).String getName()
org.eclipse.swt.graphics.Image getImage()
null
if this type of input has no imageString getType()
FOLDER_TYPE
. The type is used for determining a suitable viewer
for this object.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.