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 72275 - refactor Module Action package name doesn't update layer and manifest
Summary: refactor Module Action package name doesn't update layer and manifest
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 77216 79269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-05 20:40 UTC by omarello
Modified: 2011-03-15 22:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description omarello 2006-02-05 20:40:54 UTC
Try to refactor (rename) package name for a netbeans module action.
Dependant class rename correctly.
layer.xml and manifest.mf not renamed at all.

Info:
------
Netbeans 5.0 (build 200601251500)
jdk 1.5.0

How to reproduce:
------------------

1- Create new netbeans module project (accept default package name or enter your
own)
2- Create new action class (accept default or enter your own name)
3- Refactor the package by renaming it to somthing else.

4- layer.xml file is moved to new package directory. manifest.mf updates new
location of layer.xml

5- netbeans fails to rename the action class name in the layer.xml file

Expected Behavior:
------------------

netbeans should rename the package name instances  in layer.xml as well
Comment 1 Milos Kleint 2006-02-06 09:03:29 UTC
yup, that's probably not implemented.
Comment 2 Milos Kleint 2006-03-27 08:57:35 UTC
additionally the Move Class refactoring doesn't work either for layer content.

(Rename of packages is technically a Move Class refactoring)

The challenge here is to make it work across projects, the class can be moved to
a different project/module, meaning the layer content needs to be dragged along.
Comment 3 Milos Kleint 2006-03-29 08:20:27 UTC
-> future.
Comment 4 Milos Kleint 2006-06-01 10:44:56 UTC
*** Issue 77216 has been marked as a duplicate of this issue. ***
Comment 5 Milos Kleint 2006-06-28 08:19:12 UTC
*** Issue 79269 has been marked as a duplicate of this issue. ***
Comment 6 rmichalsky 2008-11-22 21:28:59 UTC
*** Issue 144150 has been marked as a duplicate of this issue. ***
Comment 7 rmichalsky 2008-11-22 22:05:49 UTC
*** Issue 151116 has been marked as a duplicate of this issue. ***
Comment 8 Jesse Glick 2010-03-11 17:22:59 UTC
NBM refactorings are barely supported and will probably be dropped in the future with a move to annotations.
Comment 9 Jesse Glick 2011-03-15 22:20:45 UTC
No plans to work further on layer refactorings; time would be better spent
defining layer-generating annotations. In the particular case of actions, this already works.