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 218746

Summary: Accessing file system in EDT: ToggleBookmarkAction update
Product: editor Reporter: Egor Ushakov <gorrus>
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vv159170
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 218138    
Attachments: stacktrace

Description Egor Ushakov 2012-09-21 09:50:09 UTC
steps to reproduce:
- have projects view visible
- open file in the editor
- click on empty space in projects view
this will result in File.isFile call for selected node, see attached stacktrace
Comment 1 Egor Ushakov 2012-09-21 09:50:40 UTC
Created attachment 124695 [details]
stacktrace
Comment 2 Egor Ushakov 2012-09-21 09:57:47 UTC
correction:
- also in projects view have selected a file that is not opened in the editor
Comment 3 Egor Ushakov 2012-09-21 10:29:04 UTC
It looks like the problem is that we recreate DataEditorSupport on every editor focus lost if other file is selected in projects view just to check that there is EditorCookie in the actions global context.
See also bug 210416
Comment 4 David Strupl 2012-12-20 14:20:10 UTC
I think this case was already fixed by Jarda as 218760. Marking as duplicate.

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