use of org.talend.designer.components.exchange.jobs.InsertionExtensionJob in project tdi-studio-se by Talend.
the class InsertionExtensionAction method run.
public void run() {
if (extension == null) {
return;
}
try {
final InsertionExtensionJob job = new InsertionExtensionJob(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