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 106831 - [65cat] Unsupported refactoring scenarios in GUI builder
Summary: [65cat] Unsupported refactoring scenarios in GUI builder
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 13 votes (vote)
Assignee: issues@guibuilder
URL: http://wiki.netbeans.org/wiki/view/GU...
Keywords:
: 105850 105981 121923 122605 122873 125999 146305 146306 149294 155153 174314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-15 15:22 UTC by Tomas Pavek
Modified: 2010-08-25 12:52 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2007-06-15 15:22:42 UTC
For NB 6.0 we've integrated the GUI builder with the NetBeans refactoring infrastructure (infamous issue 48288), so the
GUI forms and related resources are updated according to the structural changes done via Java refactoring features. We
implemented the initial set of refactoring scenarios, but there are still some scenarios left. (Actually the area of
refactoring is quite complex and can hardly be ever covered to the full extent.)

We use this issue to collect refactoring scenarios not yet supported by the GUI builder. Anybody is welcome to add
comments/ideas. Whenever we implement a new scenario, we'll also add a note here.

Here are some of the scenarios not supported at this moment:
- Copying GUI form class
- Updating embedded custom code (entered by the user in the GUI builder)
- Renaming an event handler method (via Rename refactoring)
- Renaming an @action method
- Renaming a bean property,
etc.

For the most recent list and for more details see:
http://wiki.netbeans.org/wiki/view/GUIBuilderRefactoring
Comment 1 belkorin 2007-06-25 20:10:41 UTC
Does renaming inside of an event handler method work? In the nightly build I'm working with right now(200706220000),
when I try to refactor something inside of a generated event handler by using refactor>>rename on the right-click menu,
it tells me that the event handler method is a protected block so it can't.
Comment 2 _ wadechandler 2007-06-25 21:30:52 UTC
I think this scenario should work, but it should only work currently with a special property set.

you'll need to use a cmd line switch:
-J-Dform.refactoring=true
or add it to the netbeans.conf options for your build until this stuff is considered final this the switch will no
longer be needed.
Comment 3 _ wadechandler 2007-06-25 21:37:24 UTC
Might have spoken too soon. I think this is still one of the unsupported operations. If you look in the message of  
issue it says renaming the method is unsupported. I know other variables and things which are used inside the event
handler will be renamed, but I don't think renaming the method itself works if this is what you mean.
Comment 4 Tomas Pavek 2007-06-26 09:34:23 UTC
Renaming the event handler method itself is not supported, but it should work _inside_ the method where the code is not 
protected. It does not work now due to a bug (see issue 105649).

Also note that the cmd line switch is no longer needed, GUI refactoring is on by default.
Comment 5 Tomas Pavek 2007-07-12 13:21:02 UTC
*** Issue 105981 has been marked as a duplicate of this issue. ***
Comment 6 Peter Pis 2007-08-24 15:11:09 UTC
*** Issue 113162 has been marked as a duplicate of this issue. ***
Comment 7 Jan Stola 2007-11-23 10:54:08 UTC
*** Issue 122605 has been marked as a duplicate of this issue. ***
Comment 8 Jan Stola 2007-11-29 10:40:44 UTC
*** Issue 122873 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Pavek 2008-01-11 15:59:44 UTC
*** Issue 121923 has been marked as a duplicate of this issue. ***
Comment 10 Jan Stola 2008-02-05 14:37:17 UTC
*** Issue 125999 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Pavek 2008-03-25 10:33:01 UTC
*** Issue 130099 has been marked as a duplicate of this issue. ***
Comment 12 Jan Stola 2008-04-01 13:31:01 UTC
*** Issue 131668 has been marked as a duplicate of this issue. ***
Comment 13 Tomas Pavek 2008-06-12 18:24:16 UTC
From above, issue 130099 and issue 131668 have been already fixed (implemented). Issue 105649 and issue 113162 fixed
elsewhere (not refactoring bugs). See the URL (http://wiki.netbeans.org/wiki/view/GUIBuilderRefactoring) for the most
current state of supported and unsupported refactoring scenarios.
Comment 14 Jan Stola 2008-09-08 13:48:10 UTC
*** Issue 146305 has been marked as a duplicate of this issue. ***
Comment 15 Jan Stola 2008-09-08 13:49:02 UTC
*** Issue 146306 has been marked as a duplicate of this issue. ***
Comment 16 Jan Stola 2008-10-07 10:49:50 UTC
*** Issue 149294 has been marked as a duplicate of this issue. ***
Comment 17 Jiri Vagner 2008-12-16 11:48:21 UTC
*** Issue 155153 has been marked as a duplicate of this issue. ***
Comment 18 billslack 2009-03-14 17:58:46 UTC
Using Netbeans 6.5 with JDK6.0
Refactored the class names of some JPanel forms.
The refactoring appeared successful but gave an error on compiling: couldn't find symbol!
The output error message was referring to the old class file name, which no longer existed in the ,java files.
To further complicate things, after a reboot of Netbeans, the guarded blue blocks have now disappeared and a reference 
to the old class name has now appeared where a reference to the refactored class name exited.
Comment 19 Tomas Pavek 2009-10-13 12:05:10 UTC
*** Issue 174314 has been marked as a duplicate of this issue. ***
Comment 20 Tomas Pavek 2010-08-25 12:52:50 UTC
*** Bug 105850 has been marked as a duplicate of this bug. ***