use of org.absmodels.abs.plugin.actions.MavenJob in project abstools by abstools.
the class MavenAction method run.
@Override
public void run() {
if (selection != null && selection instanceof TreeSelection) {
final IProject project = getProject((TreeSelection) selection);
new Job("Maven") {
protected IStatus run(IProgressMonitor monitor) {
final MavenJob mavenJob = new MavenJob(project);
mavenJob.setUser(true);
try {
mavenJob.runMavenUpdates();
} catch (NoABSNatureException e) {
showErrorMessage(e.getMessage());
} catch (AbsJobException e) {
showErrorMessage(e.getMessage());
} catch (IOException e) {
showErrorMessage(e.getMessage());
}
MavenAction.super.run();
return new Status(IStatus.OK, PLUGIN_ID, "done");
}
}.schedule();
}
}
Aggregations