{
final Map<String, IPackageExport> exports = new HashMap<String, IPackageExport>();
final Set<String> imports = new HashSet<String>();
// Find all exports
final ExportedPackageFinder exportFinder = new ExportedPackageFinder(
getProjectModel(), new AccumulatorAdapter<IPackageExport>()
{
public void addElements(Collection<? extends IPackageExport> elements)
{
for (IPackageExport export : elements)
{
exports.put(export.getPackageName(), export);
}
}
});
Job findExportsJob = new Job("Find exports")
{
protected IStatus run(IProgressMonitor monitor)
{
return exportFinder.run(monitor);
}
};
findExportsJob.setUser(true);
findExportsJob.schedule();