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 100957

Summary: review of: Project dependencies should be accessible through API
Product: java Reporter: Tomas Zezula <tzezula>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker CC: jbecicka
Priority: P2 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 92030    
Attachments: Diff file

Description Tomas Zezula 2007-04-13 13:11:08 UTC
The refactoring and find usages need to find the dependent roots of a project
root in which the refactored type is declared, but finding such an information
using the project API may be very expensive especially when lots of projects is
opened. The goal of this API is to provide and cache this information.
The API is single static method taking a URL of the root it should find the
dependent roots for and returning a list of dependent URLs.
The API should be stable in NetBeans 6.0.
Comment 1 Tomas Zezula 2007-04-13 13:14:10 UTC
Created attachment 40883 [details]
Diff file
Comment 2 Jan Becicka 2007-04-16 10:52:20 UTC
API looks good. From my point of view I see one problem in impl.: this method
returns source roots of *all known projects*. But I need only source root of
*open projects*.
Comment 3 Tomas Zezula 2007-04-16 12:01:24 UTC
OK, fixed.
Comment 4 Tomas Zezula 2007-04-16 16:54:57 UTC
Checking in apichanges.xml;
/cvs/java/source/apichanges.xml,v  <--  apichanges.xml
new revision: 1.7; previous revision: 1.6
done
Checking in nbproject/project.properties;
/cvs/java/source/nbproject/project.properties,v  <--  project.properties
new revision: 1.16; previous revision: 1.15
done
Checking in src/org/netbeans/api/java/source/SourceUtils.java;
/cvs/java/source/src/org/netbeans/api/java/source/SourceUtils.java,v  <-- 
SourceUtils.java
new revision: 1.29; previous revision: 1.28
done
Checking in src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.42; previous revision: 1.41
done
Checking in test/unit/src/org/netbeans/api/java/source/SourceUtilsTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/SourceUtilsTest.java,v
 <--  SourceUtilsTest.java
new revision: 1.4; previous revision: 1.3
done