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 - review of: Project dependencies should be accessible through API
Summary: review of: Project dependencies should be accessible through API
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 92030
  Show dependency tree
 
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
Exception Reporter:


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