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 72963

Summary: Adding sources to NetBeans Platform Manager requires restart to work
Product: apisupport Reporter: pzajac <pzajac>
Component: ProjectAssignee: Martin Krauskopf <mkrauskopf>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pzajac 2006-02-23 11:29:58 UTC
[20050223]
How to reproduces:
1) Open NetBeans module project in module suite. No sources root is assigned to
platform.
2) Try in editor ALT + SHIFT + O  on element from platform in module source. 
No element was located.
3) Add zip file with sources to platform sources.
4) Try in editor ALT + SHIFT + O  on element from platform in module source. 
No element was located.
5) restart IDE.
6) Try in editor ALT + SHIFT + O  on element from platform in module source. 
Element was located.
Comment 1 Martin Krauskopf 2006-02-23 11:40:01 UTC
Not sure where is the problem. Will have to recall the code. Hopefully for u1.
Comment 2 Jesse Glick 2006-02-23 17:01:37 UTC
Reproducible in 5.0 or only in 5.0u1?
Comment 3 pzajac 2006-02-23 17:40:45 UTC
The same scenario is reproducible in nb50.
Comment 4 Jesse Glick 2006-02-23 17:44:10 UTC
So, mark accordingly...
Comment 5 Martin Krauskopf 2006-02-24 18:11:36 UTC
GlobalSourceForBinaryImpl does not implement its (add|remove)ChangeListener
methods. So GlobalPathRegistry's returns old results from its cache.
Comment 6 Martin Krauskopf 2006-02-26 18:36:39 UTC
I fixed the problem for zipped source roots. The second problem will be probably
somewhere around BinaryEntry.getSourceLocation() and its caller(s)?
Anyway review is appreciated.

universe/NbPlatform.java; 1.32 -> 1.33;
test/unit/universe/NbPlatformTest.java; 1.17 -> 1.18;

queries/GlobalSourceForBinaryImpl.java; 1.7 -> 1.8;
test/unit/queries/GlobalSourceForBinaryImplTest.java; 1.4 -> 1.5;
Comment 7 pzajac 2006-03-28 08:50:59 UTC
*** Issue 73986 has been marked as a duplicate of this issue. ***
Comment 8 Martin Krauskopf 2007-08-16 09:36:49 UTC
I'm not sure what I meant by 'second problem' but it works for me for zipped sources as well for directories. Zajo
reopen if you find any problems. Dik.
Comment 9 pzajac 2007-08-16 10:15:13 UTC
Please use rather WORKSFORME next time. 
Comment 10 Martin Krauskopf 2007-08-16 10:17:12 UTC
> Please use rather WORKSFORME next time.

No. It was fixed. See comments above.