Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Register Isaveable object with workbench
Register Isaveable object with workbench [message #894470] Mon, 09 July 2012 11:04 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 #894539 is a reply to message #894470] Mon, 09 July 2012 14:29 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Wouldn't you implement ISaveablePart on a view or editor?

PW


Re: Register Isaveable object with workbench [message #894554 is a reply to message #894539] Mon, 09 July 2012 15:07 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 15:13]

Report message to a moderator

Re: Register Isaveable object with workbench [message #894951 is a reply to message #894554] Wed, 11 July 2012 08:43 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
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?

any idea?
Re: Register Isaveable object with workbench [message #895131 is a reply to message #894951] Wed, 11 July 2012 18:36 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It has to be tied to a view or editor, as they're the active "element" that gets crack at the save enablement

PW


Previous Topic:Editor Visibility
Next Topic:Editor Selection Freezes
Goto Forum:
  


Current Time: Fri Apr 19 16:53:36 GMT 2024

Powered by FUDForum. Page generated in 0.01965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top