|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
The model manager maintains a list of open saveable models.
SaveableModel,
ISaveableModelSource| Method Summary | |
|---|---|
void |
addModelLifecycleListener(IModelLifecycleListener listener)
Adds the given listener to the list of listeners. |
ISaveableModel[] |
getOpenModels()
Returns the list of open models managed by this model manager. |
void |
handleModelLifecycleEvent(ModelLifecycleEvent event)
This implementation of handleModelLifecycleEvent must be called by implementers of ISaveableModelSource whenever the list of models of the model source changes, or when the dirty state of models changes. |
void |
removeModelLifecycleListener(IModelLifecycleListener listener)
Removes the given listener from the list of listeners. |
| Method Detail |
public ISaveableModel[] getOpenModels()
public void handleModelLifecycleEvent(ModelLifecycleEvent event)
This method may also be called by objects that hold on to models but are not workbench parts. In this case, the event source must be set to an object that is not an instanceof IWorkbenchPart.
Corresponding open and close events must originate from the same (identical) event source.
This method must be called on the UI thread.
handleModelLifecycleEvent in interface IModelLifecycleListenerevent - public void addModelLifecycleListener(IModelLifecycleListener listener)
Listeners should ignore all other event types, including PRE_CLOSE. There is no guarantee that listeners are notified before models are closed.
listener - public void removeModelLifecycleListener(IModelLifecycleListener listener)
listener -
|
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.