Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » IEditorPart - save as without prompt(Save the dirty content in an opened editor temporarily)
IEditorPart - save as without prompt [message #667145] Wed, 27 April 2011 05:24 Go to next message
sto  is currently offline sto Friend
Messages: 7
Registered: March 2011
Junior Member
Hi,

I am writing an eclipse plugin, and it requires me to get the dirty contents in "open editors" and will compare with the saved contents.

So i want to save the dirty contents temporarily in the background,
in the otherword, i want to save the dirty content without prompting asking for "Saved Location" for the "IEditorPart".

Am i allowed to do so? or there are another way to achieve that?

Thanks in advance,
San
Re: IEditorPart - save as without prompt [message #667763 is a reply to message #667145] Mon, 02 May 2011 06:54 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 27.04.2011 07:24, sto wrote:
> Hi,
>
> I am writing an eclipse plugin, and it requires me to get the dirty
> contents in "open editors" and will compare with the saved contents.
>
> So i want to save the dirty contents temporarily in the background, in
> the otherword, i want to save the dirty content without prompting
> asking for "Saved Location" for the "IEditorPart".
>
> Am i allowed to do so? or there are another way to achieve that?
Why not compare the buffer/document with the saved state directly? You
might want to take a look at the compare plug-ins.

Dani
>
> Thanks in advance,
> San
Re: IEditorPart - save as without prompt [message #667765 is a reply to message #667763] Mon, 02 May 2011 07:04 Go to previous message
sto  is currently offline sto Friend
Messages: 7
Registered: March 2011
Junior Member
hi,
thanks for ur reply,

yes i figured out that the buffer of editor document can be retrieved,
so i am doing it that way at the moment :")

Kind Regards,
San To
Previous Topic:braces?
Next Topic:Problems with basic terminology
Goto Forum:
  


Current Time: Sat Apr 27 05:23:37 GMT 2024

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

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

Back to the top