| 
| Simulate document change [message #314058] | Mon, 02 April 2007 14:28  |  | 
| Eclipse User  |  |  |  |  | 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  |  | 
| Eclipse User  |  |  |  |  | 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.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04911 seconds