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 202459 - Copying elements in Matisse from one frame to another erroneously places related code as unmodifiable.
Summary: Copying elements in Matisse from one frame to another erroneously places rela...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 21:08 UTC by javydreamercsw
Modified: 2011-09-27 14:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test Scenario (16.36 KB, application/x-java-archive)
2011-09-21 21:08 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-09-21 21:08:30 UTC
Product Version = NetBeans IDE Dev (Build 201109202329)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

Is easier to try it than to explain it:
1) open NewJFrame and NewJFrame2 in Design view
2) Copy the JButton in NewJFrame and paste it on NewJFrame2
3) Switch to Edit mode on NewJFrame2 and notice that the code can't be modified.
Comment 1 javydreamercsw 2011-09-21 21:08:58 UTC
Created attachment 110996 [details]
Test Scenario
Comment 2 Jan Stola 2011-09-27 12:58:54 UTC
Reproducible.

The root of the problem seems to be in IndentationEngine changes that have been done recently. The current IndentationEngine doesn't flush its buffer until end of the line arrives. This results in incorrect separation of header/body/footer parts of the event handler and in placement of the actual body into non-editable footer section.

While this can be considered as regression/bug in IndentationEngine I decided to workaround this in GUI Builder's code.

Modified file: http://hg.netbeans.org/jet-main/rev/5763568c56d9
Comment 3 javydreamercsw 2011-09-27 14:04:45 UTC
Did you spawn something against the IndentationEngine then? I guess is your call, but a SQE the root cause should be fixed as it might break something else.