Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Need help with TextEditor undo

This happens with external files only, I suppose.
The reason is that this case (undo to the saved state) 
is not handled in the class JavaTextFileBuffer which is 
used for files outside the workspace.

You should file a bug against Platform/Text.

Toni

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Jeff Johnston
> Sent: Tuesday, February 20, 2007 6:01 PM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Need help with TextEditor undo
> 
> I have an editor which extends TextEditor.  The default undo support 
> works reasonably well, however it doesn't seem to recognize 
> that a file 
> has "undone' itself to original status.  The dirty bit is 
> still on and 
> the user gets asked when the file gets closed if he/she wants to save 
> the changes to the file.
> 
> Is this expected behavior or a known bug?  Is there another 
> undo manager 
> I should use?  Thoughts welcome.
> 
> -- Jeff J.
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top