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 155153

Summary: Refactoring in readonly blocks failed
Product: guibuilder Reporter: christian255 <christian255>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description christian255 2008-12-10 15:39:47 UTC
The refactoring dosen't work in "read-Only-blocks" with "custom code" inside.

Please look at this image. 

http://www.marquardtnet.info/cecke/links.7/bild4.jpg

The refactoring of the variable FORMULARIMAGE failed, because the custom code in the line 
setIconImage(de.formulareditor.helper.Konstanten.FORMULARIMAGE);
in in a read-Only-block.
Comment 1 christian255 2008-12-10 15:52:38 UTC
The refactoring in read-only-blocks failed.
Please look at this picture:

http://www.marquardtnet.info/cecke/links.7/bild4.jpg

The refactoring from FORMULARIMAGE failed, because the line
>> setIconImage(de.formulareditor.helper.Konstanten.IMG_FORMULAR);
is a custom code in a read-only-block
Comment 2 Jan Pokorsky 2008-12-11 15:03:58 UTC
form refactoring issue, reassigning
Comment 3 Jiri Vagner 2008-12-16 11:48:23 UTC
Thank you for your report. Yes, you are right, this scenarion (rename of non-component variable) is not actually
supported. Inside custom code we support only ...
http://wiki.netbeans.org/GUIBuilderRefactoring#section-GUIBuilderRefactoring-7.UpdatingEmbeddedCustomCode

Thank you again for your report, I'm going to assign this issue into out refatoring umbrella feature.

*** This issue has been marked as a duplicate of 106831 ***