|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for getting the name, image, and type for an object.
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.
Field Summary | |
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 (value "???" ). |
Method Summary | |
Image |
getImage()
Returns an image for this object. |
String |
getName()
Returns the name of this object. |
String |
getType()
Returns the type of this object. |
Field Detail |
public static final String FOLDER_TYPE
"FOLDER"
).
Folders are comparison elements that have no contents, only a name and children.
public static final String TEXT_TYPE
"txt"
).
public static final String UNKNOWN_TYPE
"???"
).
Method Detail |
public String getName()
public Image getImage()
null
if this type of input has no imagepublic String getType()
FOLDER_TYPE
.
The type is used for determining a suitable viewer for this object.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |