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 218236

Summary: ClonableEditor.updateName is always called 5 times
Product: platform Reporter: Egor Ushakov <gorrus>
Component: TextAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dstrupl, issues
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 218138    
Attachments: stacktrace

Description Egor Ushakov 2012-09-12 15:27:43 UTC
When ClonableEditor.updateName is called (for example when switching tabs) it calls different set methods which fires property changes and MultiViewPeer.propertyChange receives these updates and triggers updateName one more time (for each set call). Making a total of 5 such calls which always update the same CloneableEditorSupport. In the view of #218138 it makes 5 times more requests to filesystem in EDT.
Comment 1 Egor Ushakov 2012-09-12 15:27:58 UTC
Created attachment 124257 [details]
stacktrace
Comment 2 David Strupl 2012-12-19 16:19:15 UTC
Please check also the patch attached to 218234. It should eliminate at least one call to the update name. I am not sure whether it is enough ...
Comment 3 Egor Ushakov 2012-12-19 17:04:33 UTC
the patch eliminates all filesystem access from EDT, thanks!
Comment 4 David Strupl 2012-12-20 10:28:13 UTC
If the patch applied for 218234 also resolved this bug I am closing it as a duplicate. Please reopen if it is not the case. Thanks.

*** This bug has been marked as a duplicate of bug 218234 ***