Search in sources :

Example 1 with ServiceExportWizard

use of org.talend.repository.services.ui.ServiceExportWizard in project tesb-studio-se by Talend.

the class ExportServiceAction method doRun.

@Override
protected void doRun() {
    try {
        if (!isAllOperationsAssignedJob(serviceItem)) {
            boolean isContinue = MessageDialog.openQuestion(shell, Messages.ExportServiceAction_noJobDialogTitle, Messages.ExportServiceAction_noJobDialogMsg);
            if (!isContinue) {
                return;
            }
        }
    } catch (PersistenceException e) {
        ExceptionHandler.process(e);
    }
    ServiceExportWizard processWizard = new ServiceExportWizard(serviceItem);
    IWorkbench workbench = getWorkbench();
    processWizard.setWindowTitle(EXPORT_SERVICE_LABEL);
    WizardDialog dialog = new WizardDialog(shell, processWizard);
    workbench.saveAllEditors(true);
    dialog.open();
}
Also used : ServiceExportWizard(org.talend.repository.services.ui.ServiceExportWizard) IWorkbench(org.eclipse.ui.IWorkbench) PersistenceException(org.talend.commons.exception.PersistenceException) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 IWorkbench (org.eclipse.ui.IWorkbench)1 PersistenceException (org.talend.commons.exception.PersistenceException)1 ServiceExportWizard (org.talend.repository.services.ui.ServiceExportWizard)1