|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Project Item is used to interact with the various sub-components of a project. Interaction includes launching tools/actions by double-clicking on the item or choosing actions from the context menu of the item.
This interface may be implemented directly. For convenience, a base implementation is defined in ProjectItem.
A Project Item can be added to the project in the following ways:
| Method Summary | |
Object[] |
getChildren()
Returns the children of this item. |
String |
getEditorId()
Returns the ID of the editor to launch if this item is editable, null otherwise. |
org.eclipse.ui.IEditorInput |
getEditorInput()
Returns the EditorInput object for this item, if supported; null otherwise. |
org.eclipse.jface.resource.ImageDescriptor |
getLabelImage()
Returns an ImageDescriptor specifying the icon to be used for this item in the UI. |
String |
getLabelText()
Returns the label to be used for this item in the UI. |
Object |
getParent()
Returns the parent of this item. |
Project |
getProject()
Returns the project to which this item belongs. |
boolean |
hasChildren()
Checks if the item has any children. |
| Method Detail |
public String getLabelText()
public org.eclipse.jface.resource.ImageDescriptor getLabelImage()
public Object getParent()
public boolean hasChildren()
public Object[] getChildren()
public Project getProject()
public String getEditorId()
public org.eclipse.ui.IEditorInput getEditorInput()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||