{
job.cancel();
}
ISigilProjectModel project = findProject(element);
final IRepositoryManager repository = project == null ? SigilCore.getGlobalRepositoryManager() : project.getRepositoryManager();
StringBuilder buf = new StringBuilder();
for (IBundleRepository rep : repository.getRepositories()) {
IRepositoryModel mod = SigilCore.getRepositoryModel(rep);
if ( buf.length() > 0 ) {
buf.append(" -> ");
}
buf.append(mod.getName());
}
buf.insert(0, "Repository Path: ");
repoPath.setText(buf.toString());
job = new Job("Resolving " + element)
{
@Override
protected IStatus run(IProgressMonitor progress)
{
try
{
resolve(element, repository.getBundleResolver(), progress);
return Status.OK_STATUS;
}
catch (CoreException e)
{
return e.getStatus();