Search in sources :

Example 1 with ModifyExtensionJob

use of org.talend.designer.components.exchange.jobs.ModifyExtensionJob in project tdi-studio-se by Talend.

the class ModifyExtensionAction method run.

public void run() {
    try {
        final ModifyExtensionJob job = new ModifyExtensionJob(ExchangeManager.getInstance().getSelectedExtension());
        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);
    }
}
Also used : JobChangeAdapter(org.eclipse.core.runtime.jobs.JobChangeAdapter) IJobChangeEvent(org.eclipse.core.runtime.jobs.IJobChangeEvent) ModifyExtensionJob(org.talend.designer.components.exchange.jobs.ModifyExtensionJob)

Aggregations

IJobChangeEvent (org.eclipse.core.runtime.jobs.IJobChangeEvent)1 JobChangeAdapter (org.eclipse.core.runtime.jobs.JobChangeAdapter)1 ModifyExtensionJob (org.talend.designer.components.exchange.jobs.ModifyExtensionJob)1