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 11208 - Improved modification of the code in guarded section by simplified diff
Summary: Improved modification of the code in guarded section by simplified diff
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 5831 (view as bug list)
Depends on: 12331
Blocks: 36199
  Show dependency tree
 
Reported: 2001-04-09 12:42 UTC by Miloslav Metelka
Modified: 2013-09-02 14:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2001-04-09 12:42:29 UTC
Although this is rather an enhancement it would be nice to modify the guarded 
section by first comparing the replacement code until the first difference is 
found (and the same from the end back) and omit the replacement of the possible 
initial (and ending) exactly same part of code.
Example:
existing code:

a();
b();
c();

new code:

a();
b();
d();
c();

the first difference is letter 'd' so the 'a();\nb();\n' would stay untouched. 
When going from the end the 'c();\n' is the same so it would stay untouched.

This way the breakpoints and other bookmarks in the code would stay where they 
are in the guarded section.
The future improvement could be the full diffing of the changes.
I apologize for high priority and defect instead of enhancement but it would be 
nice to implement it soon so that the bookmarks are saved. If it's too 
difficult please lower the priority and turn it to enhancement.
Thanks
Mila
Comment 1 Miloslav Metelka 2001-04-09 12:44:13 UTC
*** Issue 5831 has been marked as a duplicate of this issue. ***
Comment 2 Svata Dedic 2001-04-09 13:11:01 UTC
Not too difficult, but it's really an enhancement (but almost must-to-have for
3.3 release)
Comment 3 Jan Chalupa 2001-05-05 23:20:42 UTC
Target milestone -> 3.3
Comment 4 Jan Chalupa 2001-11-27 12:50:02 UTC
Target milestone -> 3.3.1.
Comment 5 Svata Dedic 2002-05-21 17:48:07 UTC
Cleaning up before 4.0 planning
Comment 6 Marek Grummich 2002-07-19 16:41:05 UTC
Target milestone was changed from not determined to TBD
Comment 7 Martin Matula 2004-11-12 07:17:29 UTC
We can try to do this with the JavaEditor's rewrite.