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.
Trying to use NB/Rave tree as project... then it happened when scanning trhu, after restart, there was no paining done about 10 mins. I did thread dump and saw the painting was stopped because the ClazzDataNode.getIcon stops it in order to resolve the icon. The icon getter shouldn't do that. Instead of this scenario: 1) give me an icon (in AWT), 2) wait (stopping AWT) I first resolve all the data (meanwhile running the task in other thread, leaving user out of the game) 3) here is the icon (in AWT) could you use this one?: 1) give me an icon (in AWT), 2) here is some default one..retuns immediatelly (in AWT.. user should be fine to see temporary some icon without the badges etc) 3) start some task in other thread to resolve the data (in other thread) 4) when the task is finished.. set the resolved icon.. which should trigger some change event (scheduled in AWT) and the interested view will update it accordingly. I guess this approach should be used also for other getters for presentation level only (no AWT stopping should be done there). New projects looks really very nice.. hope you will resolve perf issues soon.
Created attachment 15608 [details] Stack of AWT when the problem occured
Honzo, please look at this. Also please talk to Tomas Hurka before - he has some hints on how to implement it. Thanks.
Tomasi, could you please look at this? It is the last issue blocking issue 45449, which is a TCR from javacore DevRev.
Pavel will look at it.
Checking in src/org/netbeans/modules/clazz/ClassDataNode.java;runsocks cvs commit /cvs/clazz/src/org/netbeans/modules/clazz/ClassDataNode.java,v <-- ClassDataNode.java new revision: 1.45; previous revision: 1.44 done Checking in src/org/netbeans/modules/clazz/CompiledDataNode.java; /cvs/clazz/src/org/netbeans/modules/clazz/CompiledDataNode.java,v <-- CompiledDataNode.java new revision: 1.10; previous revision: 1.9 done