RepositoryPlugin release = null;
if (projectDiff.getReleaseRepository() != null) {
release = Activator.getRepositoryPlugin(projectDiff.getReleaseRepository());
}
ReleaseContext context = new ReleaseContext(projectDiff.getProject(), projectDiff.getBaselines(), release, releaseOption);
ReleaseJob job = new ReleaseJob(context, showMessage);
job.setRule(ResourcesPlugin.getWorkspace().getRoot());
job.run(new SubProgressMonitor(monitor, 1));
}
monitor.worked(1);