Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » close editor on save
close editor on save [message #501162] Tue, 01 December 2009 11:26 Go to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
Hi,
maybe this is trivial but I don't find how to close an editor when the save method exits. Is it possibile?
Re: close editor on save [message #501268 is a reply to message #501162] Tue, 01 December 2009 16:58 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
Luca Ferrari wrote:
> Hi,
> maybe this is trivial but I don't find how to close an editor when the
> save method exits. Is it possibile?


You can call IWorkbenchPage.closeEditor().

If I were to use your product, I would definitely get confused and would
wonder where the editor went when I press Ctrl+S :-)


- Prakash
Platform UI Team, IBM

Blog <http://blog.eclipse-tips.com>
Twitter <http://www.twitter.com/Eclipse_Tips>
Re: close editor on save [message #501661 is a reply to message #501268] Thu, 03 December 2009 10:25 Go to previous message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
Thank you very much for the hint.
I agree that, in general, this is not a good solution, but since the editors are used to enter only a few data, the client has decided to close automatically the editor when the editing has finished (connecting a button to the save-and-close action).
Previous Topic:Open Perspectives
Next Topic:How to automatically use new Plugins in my RCP 3.5 App
Goto Forum:
  


Current Time: Sun Sep 21 02:16:57 GMT 2014

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

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