Bug 127023 - [rename] Renaming a JAR
Summary: [rename] Renaming a JAR
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 23:34 EST by Eric Rizzo CLA
Modified: 2008-11-28 15:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Rizzo CLA 2006-02-08 23:34:31 EST
If you rename a JAR (via Eclipse UI) that is on a project's build path, the build path is not automatically updated to the new JAR name. It forces the user to manually edit the build path to reflect the new JAR name.
It seems the refactoring engine has the necessary information to go ahead and update (or at least offer to) any projects that depend on the JAR being renamed.
Comment 1 Jerome Lanneluc CLA 2006-02-09 04:08:25 EST
Moving to JDT UI
Comment 2 Martin Aeschlimann CLA 2006-02-12 10:42:55 EST
How did you rename the JAR. It seems to me that we never of a 'Refactor-Rename' on JARs. If you used File-Rename: This is supposed to only rename a file, without updating any references.

But I think it would be consistent if 'Refactor-Rename' is also supported on internal JAR's.
Comment 3 Markus Keller CLA 2006-02-13 04:43:26 EST
So I take this as an enhancement request to support the rename refactoring for internal jars.
Comment 4 Eric Rizzo CLA 2006-02-13 08:05:04 EST
Correct that there is not a Refactor action for renaming a JAR (it is done with a Rename action from Navigator view). Also correct that my intention is for this to be a request to make renaming a JAR an "intelligent" refactoring rather than a simple filesystem name change.

Thanks.