Search in sources :

Example 1 with SetupTransformerInputVariablesDialog

use of com.amalto.workbench.dialogs.SetupTransformerInputVariablesDialog in project tmdm-studio-se by Talend.

the class TransformerMainPage method executeProcess.

protected void executeProcess(final FormToolkit toolkit) {
    try {
        // check if we have a step to perfom
        // ((WSTransformerV2)getXObject().getWsObject())
        java.util.List<WSTransformerProcessStep> steps = transformer.getProcessSteps();
        if ((steps == null) || (steps.size() == 0)) {
            MessageDialog.openError(TransformerMainPage.this.getSite().getShell(), Messages.TransformerMainPage_ErrorTitle1, Messages.TransformerMainPage_ErrorMsg1);
            return;
        }
        // perform save
        performSave();
        // Open form Dialog
        if (transformerDialog == null) {
            transformerDialog = new SetupTransformerInputVariablesDialog(TransformerMainPage.this.getSite().getShell(), toolkit, getXObject(), TransformerMainPage.this);
            transformerDialog.create();
            transformerDialog.getShell().setText(Messages.TransformerMainPage_DialogTitle);
        }
        openTransformerDialog();
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
    }
}
Also used : SetupTransformerInputVariablesDialog(com.amalto.workbench.dialogs.SetupTransformerInputVariablesDialog) WSTransformerProcessStep(com.amalto.workbench.webservices.WSTransformerProcessStep) PartInitException(org.eclipse.ui.PartInitException) InvocationTargetException(java.lang.reflect.InvocationTargetException) XtentisException(com.amalto.workbench.utils.XtentisException)

Aggregations

SetupTransformerInputVariablesDialog (com.amalto.workbench.dialogs.SetupTransformerInputVariablesDialog)1 XtentisException (com.amalto.workbench.utils.XtentisException)1 WSTransformerProcessStep (com.amalto.workbench.webservices.WSTransformerProcessStep)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 PartInitException (org.eclipse.ui.PartInitException)1