Bug 100957 - review of: Project dependencies should be accessible through API
review of: Project dependencies should be accessible through API
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Source
6.x
All All
: P2 (vote)
: 6.x
Assigned To: Tomas Zezula
issues@java
: API_REVIEW_FAST
Depends on:
Blocks: 92030
  Show dependency treegraph
 
Reported: 2007-04-13 13:11 UTC by Tomas Zezula
Modified: 2007-04-16 16:54 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
:


Attachments
Diff file (10.25 KB, patch)
2007-04-13 13:14 UTC, Tomas Zezula
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo