Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Calling doSave()
Calling doSave() [message #466020] Thu, 12 April 2007 10:49 Go to next message
Eclipse UserFriend
I may be going about this all wrong...but...what I want to do is manually save my editor. I don't want to close it, I just want to save it. I assume that I call doSave() manually...however, is there a cleaner way to do it without creating your own IProgressMonitor? And if not, what type of ProgressMonitor do I create? A new one, or do I pull it from somewhere? I don't want any custom behavior...the system default is fine for now.

Thanks!
Re: Calling doSave() [message #466026 is a reply to message #466020] Thu, 12 April 2007 11:35 Go to previous messageGo to next message
Eclipse UserFriend
I knew this had to be easier. I'm just unfamiliar with all of the methods available (lots of classes to pour through, after all). Here is how I did it for reference to others who might be as clueless as myself...

From within the editor itself:

getEditorSite().getPage().saveEditor(this, true);

Seems to work pretty good. I'd be happy to hear any alternative approaches...?
Re: Calling doSave() [message #466299 is a reply to message #466026] Tue, 17 April 2007 09:50 Go to previous message
Eclipse UserFriend
Jason wrote:
> getEditorSite().getPage().saveEditor(this, true);

That is probably the safest way to do it.

PW
Previous Topic:Can anybody look at this........
Next Topic:Hide unwanted actionsets
Goto Forum:
  


Current Time: Sun Sep 07 03:51:03 EDT 2025

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

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

Back to the top