use of org.talend.designer.components.exchange.jobs.DeleteExtensionJob in project tdi-studio-se by Talend.
the class DeleteExtensionAction method run.
public void run() {
if (extension == null) {
return;
}
try {
final DeleteExtensionJob job = new DeleteExtensionJob(extension);
job.addJobChangeListener(new JobChangeAdapter() {
@Override
public void done(final IJobChangeEvent event) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
updateUI(job, event);
}
});
}
});
ExchangeUtils.scheduleUserJob(job);
} catch (Throwable e) {
ExceptionHandler.process(e);
}
}
Aggregations