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 - ClonableEditor.updateName is always called 5 times
Summary: ClonableEditor.updateName is always called 5 times
Status: RESOLVED DUPLICATE of bug 218234
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks: 218138
  Show dependency tree
 
Reported: 2012-09-12 15:27 UTC by Egor Ushakov
Modified: 2012-12-20 10:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (5.04 KB, text/plain)
2012-09-12 15:27 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***