Summary: | [refactoring] [launch config refactoring] project rename cannot undo | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Feng(Marvin) Wang <feng.wang> | ||||
Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | darin.eclipse, Michael_Rennie | ||||
Version: | 3.4 | Keywords: | bugday, contributed | ||||
Target Milestone: | 3.5 M3 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Feng(Marvin) Wang
2008-08-18 03:19:39 EDT
I found that if you perform a undo against a Java project rename operation, the <listEntry value="/PROJECT_NAME"/> element in the launch config file will not refectored. (In reply to comment #0) > Build ID: I20080617-2000 > > Steps To Reproduce: > 1. create a launch config in a java project. > > 2. rename the java project. The launch config will refactored > (org.eclipse.jdt.launching.PROJECT_ATTR attribute in the launch config will > change). > > 3.Undo the rename operation (press Ctrl+z in Package Explorer view). > > 4. Now the launch config will disappeared. > > > More information: > Created attachment 111550 [details]
fix the cannot undo/redo bug
before applying this patch,
1. create a debug config by running a Java class contains "main" method.
2. rename the associate Java project by refactoring->rename context menu.
3. press Ctrl+z undo the rename operation.
4. press Ctrl+y perform redo.
After step 4, it will jump out a warning box said "'Rename Java Project' cannot be redone. Reason: The launch configuration "***" no longer exists".
After applying the patch,
You can undo/redo project rename operation many times.
Thanks for the patch, will consider for 3.5. applied patch verified, thanks for the fix Feng. |