|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is not intended to be implemented by clients.
Method Summary | |
---|---|
Saveable[] |
getActiveSaveables()
Returns the active saveables based on the current selection. |
Saveable[] |
getSaveables()
Returns the Saveable objects for which elements are contained in the tree. |
void |
init(ISaveablesSource source,
StructuredViewer viewer,
ISaveablesLifecycleListener listener)
Initializes this service. |
Method Detail |
public void init(ISaveablesSource source, StructuredViewer viewer, ISaveablesLifecycleListener listener)
The given listener will be notified of changes to the result of
getSaveables()
and to the dirty state of those saveables. The
given source will be used as the event source for these event
notifications.
The given viewer's selection will be used by
getActiveSaveables()
to determine the active saveables. The
active saveables are determined by iterating over the current selection,
and for each element, walking up its parent chain until an element
representing a saveable is found, or a root element is reached.
source
- viewer
- listener
- public Saveable[] getSaveables()
public Saveable[] getActiveSaveables()
|
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.