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.
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.
Created attachment 40883 [details] Diff file
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*.
OK, fixed.
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