Bug 61171 - [projection?] Undo mangles code (with folding activated)
Summary: [projection?] Undo mangles code (with folding activated)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 RC1   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 63662 63899 64562 64728 67403 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-06 03:59 EDT by Nico Seessle CLA
Modified: 2004-06-16 10:03 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Seessle CLA 2004-05-06 03:59:12 EDT
I200405051045 (WinXP, J2SDK 1.4.2_03)

I can't provide a goot testcase, but the problem seems to happen only when
folding is activated for the java editor.

The class contains some inner classes (the code shown below is part of one of
the inner classes) and imports, which are folded away. No changes with regard to
the default-settings of folding other than just enabling it.

I'm starting with the following code-snippet: 

            if (o instanceof IHierarchie) {
                IHierarchie hier = (IHierarchie) o;
                setText(hier.getName());
                Icon icon = getIcon("table_sql");
                setIcon(icon);
            }

Now I changed the code (involving code assist, if that should matter) to:

            if (o instanceof IHierarchie) {
                IHierarchie hier = (IHierarchie) o;
                setText(hier.getName());
                Icon icon = ResourceManager.getIcon("table_sql");
                setIcon(icon);
            }

After pressing ctrl-z (undo) some times I end up with: 

            if (o instanceof IHierarchie) {
                IHierarchie hier = (IHierarchie) o;
                setText(hier               Icon icon =
ResourceManagergetIcon("table_sql");
                setIcon(icon);
            }
Comment 1 Dani Megert CLA 2004-05-24 10:07:09 EDT
*** Bug 63662 has been marked as a duplicate of this bug. ***
Comment 2 Kai-Uwe Maetzel CLA 2004-05-25 09:32:18 EDT
Fixed in > I200405251200
Comment 3 Kai-Uwe Maetzel CLA 2004-05-25 12:27:45 EDT
*** Bug 63899 has been marked as a duplicate of this bug. ***
Comment 4 Christof Marti CLA 2004-05-28 06:43:24 EDT
start verifying
Comment 5 Kai-Uwe Maetzel CLA 2004-05-28 11:07:27 EDT
*** Bug 64562 has been marked as a duplicate of this bug. ***
Comment 6 Kai-Uwe Maetzel CLA 2004-06-02 13:38:51 EDT
*** Bug 64728 has been marked as a duplicate of this bug. ***
Comment 7 Kai-Uwe Maetzel CLA 2004-06-16 10:03:19 EDT
*** Bug 67403 has been marked as a duplicate of this bug. ***