|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Workbench parts that work in terms of saveable models should implement this interface in order to provide better integration with workbench facilities like the Save command, prompts to save on part close or shutdown, etc.
| Method Summary | |
|---|---|
ISaveableModel[] |
getActiveModels()
Returns the saveable models currently active in the workbench part. |
ISaveableModel[] |
getModels()
Returns the saveable models presented by the workbench part. |
| Method Detail |
public ISaveableModel[] getModels()
ISaveableModelManager.handleModelLifecycleEvent(ModelLifecycleEvent).
The model manager is available as a service from the part site, by
calling partSite.getService(ISaveableModelManager.class).
ISaveableModelManagerpublic ISaveableModel[] getActiveModels()
Certain workbench actions, such as Save, target only the active models in the active part. For example, the active saveable models could be determined based on the current selection in the part.
|
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.