| Register Isaveable object with workbench [message #894470] |
Mon, 09 July 2012 07:04  |
ModelGeek Mising name Messages: 347 Registered: June 2011 |
Senior Member |
|
|
Hi,
I have a class implmenting ISaveable interface and would like to register the object of this class to workbench so when user try to close application then this object should be saved.
Any idea how to register ISaveable to workbench?
Cheers
|
|
|
|
| Re: Register Isaveable object with workbench [message #894554 is a reply to message #894539] |
Mon, 09 July 2012 11:07   |
ModelGeek Mising name Messages: 347 Registered: June 2011 |
Senior Member |
|
|
Hi,
i can implement ISaveable in my view or editor but user can close those.
I want to have one object that must be called for save evenwhen there is no editor or view is loaded that has scope for project.
One more problem with implementing ISaveable to editor or view is save menu is only activted with editor/view is selected and if user select some other view then menu/tool bar item is disabled and this is quite logical.
Can i register a model object implementing ISaveable?
One more thing, i am looking something which can help to hide the editor when user presses close button. In my screnario, i have many editor open and also a tree view showing them as nodes of project so if user closes the view by click "X" then i want to hide it and when user double click the respective node in tree view then i want to show it again.
Any idea?
Cheers,
[Updated on: Mon, 09 July 2012 11:13] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04508 seconds