|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INavigatorItem
An item that can be displayed in the Hyades navigators (Profiling Monitor, Log Navigator), but is not a built- in type. Any client wishing to add an item to the navigator(s) must implement this.
INavigatorContribution| Method Summary | |
|---|---|
void |
delete(boolean referentialIntegrity,
boolean deleteContents)
Deletes this item from the navigator. |
java.util.List |
getChildren()
Returns this item's children. |
java.lang.Object |
getData()
Returns the content of this item. |
org.eclipse.swt.graphics.Image |
getImage()
Returns the item's image icon. |
java.lang.Object |
getParent()
Returns this item's parent. |
java.lang.String |
getText()
Returns the text to display in this item's label in the navigator. |
java.lang.String |
getType()
Returns the item's type. |
boolean |
hasChildren()
Returns true if this item has children,
otherwise false. |
boolean |
isDeleteEnabled()
Returns true if the delete action should
be enabled on this item, otherwise false. |
boolean |
isSaveEnabled()
Returns true if the save action should
be enabled for this item, otherwise false. |
boolean |
isUnloadEnabled()
Returns true if the unload action should
be enabled for this item, otherwise false. |
void |
save(boolean referentialIntegrity)
Saves the contents of this item to disk. |
void |
unload(boolean referentialIntegrity)
Unloads the contents of this item from memory. |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Method Detail |
|---|
void delete(boolean referentialIntegrity,
boolean deleteContents)
INavigatorContribution
should no longer contribute this item.
referentialIntegrity - if true,
referential integrity should be enforced (e.g., remove
parent if it no longer has any children).deleteContents - if true, the contents
on the filesystem should also be removed.java.util.List getChildren()
java.lang.Object getData()
org.eclipse.swt.graphics.Image getImage()
java.lang.Object getParent()
IWorkspaceRoot
should be returned.
java.lang.String getText()
java.lang.String getType()
org.eclipse.hyades.ui.analyzeExtension
extension point.
boolean hasChildren()
true if this item has children,
otherwise false. This is equivalent to
(getChildren().size() > 0), but should
be more efficient.
boolean isDeleteEnabled()
true if the delete action should
be enabled on this item, otherwise false.
boolean isSaveEnabled()
true if the save action should
be enabled for this item, otherwise false.
boolean isUnloadEnabled()
true if the unload action should
be enabled for this item, otherwise false.
void save(boolean referentialIntegrity)
referentialIntegrity - if true,
referential integrity should be enforced.void unload(boolean referentialIntegrity)
referentialIntegrity - if true,
referential integrity should be enforced (e.g.,
unload parent if it no longer has any children).
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||