Bug 192638 - [rename] Incomplete package rename refactoring
Summary: [rename] Incomplete package rename refactoring
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.1   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 186311 (view as bug list)
Depends on: 194185
Blocks:
  Show dependency tree
 
Reported: 2007-06-14 07:10 EDT by Gunnar Wagenknecht CLA
Modified: 2007-08-07 10:02 EDT (History)
2 users (show)

See Also:


Attachments
test project demonstrating the problem (38.96 KB, application/x-zip-compressed)
2007-06-14 07:12 EDT, Gunnar Wagenknecht CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2007-06-14 07:10:46 EDT
3.3 RC4.

I'll attach a zip of the project. It's EPL. 

* Import it into a new workspace.
* In Package Explorer select package presentation "hierarchical"
* Expand project
* Expand folder "src"
* Right click on package "org.eclipse.rwt" and select Refactor -> Rename...
* Check "Update references" and "Rename subpackages"
* Enter new package name "net.cloudfree.toolkit"
* Click "OK"

First problem, you get a warning about potential matches but no preview. Second, if you continue your project will not compile anymore.
Comment 1 Gunnar Wagenknecht CLA 2007-06-14 07:12:10 EDT
Created attachment 71290 [details]
test project demonstrating the problem
Comment 2 Gunnar Wagenknecht CLA 2007-06-14 07:22:08 EDT
Note, if I just rename "org.eclipse.rwt" to "net.cloudfree.toolkit" with "Rename subpackages" unchecked it fails too. The workaround I found was to start with subpackages and rename "org.eclipse.rwt" at last.
Comment 3 Markus Keller CLA 2007-07-03 11:03:08 EDT
Verified in N20070703-0010, keeping bug open to check in 3.3.1 build.
Comment 4 Markus Keller CLA 2007-08-06 06:50:28 EDT
*** Bug 186311 has been marked as a duplicate of this bug. ***
Comment 5 Markus Keller CLA 2007-08-06 07:02:06 EDT
Verified in M20070801-0800.
Filed bug 198921 for "potential matches but no preview"
Comment 6 Benno Baumgartner CLA 2007-08-07 10:02:17 EDT
verified in M20070801-0800