use of org.eclipse.titanium.utils.SonarDataExporter in project titan.EclipsePlug-ins by eclipse.
the class ExportDataForSonarAction method execute.
@Override
public Object execute(final ExecutionEvent event) throws ExecutionException {
final IWorkbenchPage iwPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
final List<IProject> res = SelectionUtils.getProjectsFromSelection(iwPage.getSelection());
for (final IProject project : res) {
new ProjectAnalyzerJob("Exporting sonar data for project " + project.getName()) {
@Override
public IStatus doPostWork(final IProgressMonitor monitor) {
try {
final SonarDataExporter exporter = new SonarDataExporter(project);
exporter.exportDataForProject();
} catch (IOException e) {
ErrorReporter.logExceptionStackTrace("Error while exporting data for project " + project.getName(), e);
}
return Status.OK_STATUS;
}
}.quickSchedule(project);
}
return null;
}
Aggregations