|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITypedElement
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 java.lang.String |
FOLDER_TYPE
Type for a folder input (value "FOLDER" ). |
static java.lang.String |
TEXT_TYPE
Type for an element whose actual type is text (value "txt" ). |
static java.lang.String |
UNKNOWN_TYPE
Type for an element whose actual type could not be determined. |
Method Summary | |
---|---|
Image |
getImage()
Returns an image for this object. |
java.lang.String |
getName()
Returns the name of this object. |
java.lang.String |
getType()
Returns the type of this object. |
Field Detail |
---|
static final java.lang.String FOLDER_TYPE
"FOLDER"
).
Folders are comparison elements that have no contents, only a name and children.
static final java.lang.String TEXT_TYPE
"txt"
).
static final java.lang.String UNKNOWN_TYPE
"???"
).
Method Detail |
---|
java.lang.String getName()
Image getImage()
null
if this type of input has no imagejava.lang.String getType()
FOLDER_TYPE
.
The type is used for determining a suitable viewer for this object.
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.