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 91584 - Refactoring/Moving TopComponents doesn't work
Summary: Refactoring/Moving TopComponents doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 3 votes (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-26 20:22 UTC by csc
Modified: 2011-03-01 13:39 UTC (History)
1 user (show)

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 csc 2006-12-26 20:22:09 UTC
After creating a TopComponent [TC] (com.mydomain.rcpapp.MyTopComponent) I want
to move this TC to an other package (e.g
com.mydomain.rcpapp.tcs.MyTopComponent). But to move the TC you must edit many
XML-Files by hand. Sometimes the package is written
com-mydomain-rcpapp-MyTopComponent sometimes not.
Comment 1 Jan Becicka 2007-05-24 13:10:43 UTC
Which xml files?
Comment 2 csc 2007-05-24 19:55:23 UTC
In Netbeans 6.0 these xml files:
MyTopComponentTopComponentWstcref.xml
MyTopComponentTopComponentSettings.xml
Layer.xml

Comment 3 Jan Becicka 2007-05-25 07:42:08 UTC
I see.
Comment 4 Peter Nabbefeld 2008-01-24 18:16:13 UTC
I just don't want to add another bug, but there are more files that could make use of refactoring the layer.xml file,
e.g. icons and language files. It should be possible to add all types of files, and the layer and all other
configuration should be changed automatically. A module writer shouldn't have to configure a module 2 weeks while
writing implementing one day ...
Comment 5 Jesse Glick 2010-03-11 17:19:45 UTC
The NBM refactoring support has not been touched in years and will probably be deleted at some point in favor of using annotations, for which we get refactoring support for free.
Comment 6 Jesse Glick 2011-03-01 13:39:16 UTC
For 7.0 there is an annotation to register TopComponent's without touching the layer. Since source files using this annotation can simply be moved to another package using only basic Java refactoring, there is no point spending time implementing refactoring for the old registration style.