Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » close editor on save
close editor on save [message #501162] Tue, 01 December 2009 06:26 Go to next message
Eclipse UserFriend
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 11:58 Go to previous messageGo to next message
Eclipse UserFriend
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 05:25 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 05:19:06 EDT 2025

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

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

Back to the top