Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Simulate document change
Simulate document change [message #314058] Mon, 02 April 2007 14:28 Go to next message
Eclipse UserFriend
Originally posted by: gritgop.pisem.net

Hello.

I have an editor that reads a java file and, in response to the user
actions, creates an underlying model that later has to be saved to a
file. Since the source code is never changed, I have the problem that
when I close the editor, Eclipse does not tell me that the file was
changed and needs to be saved. Is there a way so send a message to the
editor so it believes that the file was modified and needs to be saved?

Thank you.
Re: Simulate document change [message #314082 is a reply to message #314058] Tue, 03 April 2007 02:48 Go to previous message
Eclipse UserFriend
exquisitus wrote:

> Hello.
>
> I have an editor that reads a java file and, in response to the user
> actions, creates an underlying model that later has to be saved to a
> file. Since the source code is never changed, I have the problem that
> when I close the editor, Eclipse does not tell me that the file was
> changed and needs to be saved. Is there a way so send a message to the
> editor so it believes that the file was modified and needs to be saved?

Why not just overwrite the corresponding methods in the editor and force
the save? Note that you also need to save when the input of the editor
changes.

Dani

>
> Thank you.
Previous Topic:Selection event on viewer and MultiPageEditorPart
Next Topic:Eclipse Platform 3.2.1 Patch issues
Goto Forum:
  


Current Time: Sat May 10 06:10:49 EDT 2025

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

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

Back to the top