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.
Build: NetBeans IDE 7.0.1 (Build 201107282000) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Windows 7 User Comments: GUEST: work with maven project m_potociar: clicked on a link in the analyze stack window Maximum slowness yet reported was 25520 ms, average is 10867
Created attachment 110153 [details] nps snapshot
Created attachment 113067 [details] nps snapshot
Created attachment 116964 [details] screenshot filtrnode.getName triggers maven project loading
http://hg.netbeans.org/core-main/rev/5c02ec1a8f02 the fix attempts to check if the loaded MavenProject instance is present (therefore the getOriginalMavenProject() will not hang in synchronized block) and if not, returns simple values from ProjectInformation implementation. A new RP task is spawned that enters the synchronized block and waits for the loading to finish. Then it fires property change event.
I think the patch to Info is a bad idea. There are a bunch of callers of ProjectInformation for which blocking is not a big deal but getting an incorrect result is (they will not be listening to changes), e.g. Open Project dialog. The actual slowness report involved just MavenProjectNode.getName() - so make that return something short when the project is not yet loaded. The Node is at a higher UI level so no one will care if it is sometimes wrong.
(In reply to comment #5) > I think the patch to Info is a bad idea. There are a bunch of callers of > ProjectInformation for which blocking is not a big deal but getting an > incorrect result is (they will not be listening to changes), e.g. Open Project > dialog. > > The actual slowness report involved just MavenProjectNode.getName() - so make > that return something short when the project is not yet loaded. The Node is at > a higher UI level so no one will care if it is sometimes wrong. So what about just doing the workaround in case we are called in AWT?
like this: http://hg.netbeans.org/core-main/rev/e9658e230490
*** Bug 202215 has been marked as a duplicate of this bug. ***