Search in sources :

Example 1 with CheckPipelineProgressDialog

use of org.apache.hop.ui.hopgui.dialog.CheckPipelineProgressDialog in project hop by apache.

the class HopGuiPipelineGraph method checkPipeline.

@GuiToolbarElement(root = GUI_PLUGIN_TOOLBAR_PARENT_ID, id = TOOLBAR_ITEM_CHECK, toolTip = "i18n:org.apache.hop.ui.hopgui:HopGui.Tooltip.VerifyPipeline", image = "ui/images/check-pipeline.svg", separator = true)
public void checkPipeline() {
    try {
        CheckPipelineProgressDialog dialog = new CheckPipelineProgressDialog(getShell(), variables, pipelineMeta, getRemarks(), false);
        dialog.open();
        CheckResultDialog crd = new CheckResultDialog(getShell(), getRemarks());
        String transformName = crd.open();
        if (transformName != null) {
            // Go to the indicated transform
            // 
            TransformMeta transformMeta = pipelineMeta.findTransform(transformName);
            if (transformMeta != null) {
                pipelineTransformDelegate.editTransform(pipelineMeta, transformMeta);
            }
        }
    } catch (Exception e) {
        new ErrorDialog(getShell(), "Error", "Error verifying pipeline", e);
    }
}
Also used : CheckPipelineProgressDialog(org.apache.hop.ui.hopgui.dialog.CheckPipelineProgressDialog) HopException(org.apache.hop.core.exception.HopException) InvocationTargetException(java.lang.reflect.InvocationTargetException) HopTransformException(org.apache.hop.core.exception.HopTransformException) HopValueException(org.apache.hop.core.exception.HopValueException) GuiToolbarElement(org.apache.hop.core.gui.plugin.toolbar.GuiToolbarElement)

Aggregations

InvocationTargetException (java.lang.reflect.InvocationTargetException)1 HopException (org.apache.hop.core.exception.HopException)1 HopTransformException (org.apache.hop.core.exception.HopTransformException)1 HopValueException (org.apache.hop.core.exception.HopValueException)1 GuiToolbarElement (org.apache.hop.core.gui.plugin.toolbar.GuiToolbarElement)1 CheckPipelineProgressDialog (org.apache.hop.ui.hopgui.dialog.CheckPipelineProgressDialog)1