This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 40764 - Undo does not work in the editor after file is reloaded after external modification
Summary: Undo does not work in the editor after file is reloaded after external modifi...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2004-03-04 15:15 UTC by Miloslav Metelka
Modified: 2008-12-22 21:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch against org/openide/text/CloneableEditorSupport.java for release36 branch (595 bytes, patch)
2004-03-11 14:05 UTC, Petr Nejedly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2004-03-04 15:15:45 UTC
trunk build 040303.
Steps:
 1) Open any class e.g. ColorPreview.java from
examples
 2) Type few chars and try to undo them with
ctrl-z - undo should work fine.
 3) Make a change to the same file in external
editor. NB will reload the file after switching
back to the IDE.
 4) Now try the same like in step 2). Undo does
not work.
Comment 1 Petr Nejedly 2004-03-11 13:51:18 UTC
IMO P2.
Should be fixed for 3.6 (undo is basic functionality)
Comment 2 Petr Nejedly 2004-03-11 14:02:25 UTC
If every bug was that simple...
Just forgot to add the undo listener back after the reload.
Comment 3 Petr Nejedly 2004-03-11 14:05:00 UTC
Created attachment 13945 [details]
Proposed patch against org/openide/text/CloneableEditorSupport.java for release36 branch
Comment 4 Marian Mirilovic 2004-03-11 14:08:04 UTC
agreed - ask for review
Comment 5 Petr Nejedly 2004-03-11 14:15:21 UTC
I'd like to fix this for release36.
Mila, could you please review my fix?
Comment 6 Miloslav Metelka 2004-03-11 16:48:10 UTC
Approved.
Comment 7 Petr Nejedly 2004-03-12 10:27:44 UTC
Integrated into release36 branch
openide/src/org/openide/text/CloneableEditorSupport.java,v1.117.2.1
Comment 8 Marian Mirilovic 2004-03-14 12:32:40 UTC
verified in [nb_36_rc1](20040313-0952)