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.
When selection in projects view change NB recreate EditorSupport for c++ files, this causes filesystem access in EDT and probable ui freeze. See attached stack trace.
Created attachment 124704 [details] stacktrace
Well I really don't know what should I do with it in Navigator. I only expose panel's lookup in the Navigator TC (needed for cpp editor, see bug #201661). Reassigning to Cnd/Editor, please evaluate.
I also do not know what to do in CppEditorSupport. I suppose one of following: 1. do not instantiate unneeded node lookups in the NavigatorController. Ie. do not call n.getLookup().lookupResult(Object.class).allInstances() 2. do not initialize canWrite field in the constructor DataEditorSupport.Env. Reassign to evaluation.
Are you sure you reassigned to the right place? Try again, please.
Ok, I try again. The issue can be fixed by several ways: 1. Remove unneeded IO in DataEditorSupport.Env constructor. I do not see any reason to initialize canWrite field in the constructor. 2. NavigatorController calls Node.getLookup().lookupResult(Object.class).allInstances() to merge lookups. Navigator should provide more clever lookup merger that do not instantiate all objects. 3. NavigatorController merges lookups of DataNode and selected in the navigator node. C/C++ navigator is needed only lookup of selected node. So do not put self DataNode in the lookup.
I think I got it now.
ergonomics#6e83fbac6267
Integrated into 'main-golden', will be available in build *201211280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6e83fbac6267 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #218760: Don't check canWrite status in constructor of Env. Wait for some I/O operation
*** Bug 218746 has been marked as a duplicate of this bug. ***