Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public void callExtensionPoint(
throws HopException {
HopGuiPipelineGraph pipelineGraph = pipelineGraphExtension.getPipelineGraph();
PipelineMeta pipelineMeta = pipelineGraph.getPipelineMeta();
pipelineGraphExtension.setPreventingDefault(true);

PipelineUnitTest unitTest = TestingGuiPlugin.getCurrentUnitTest(pipelineMeta);
if (unitTest == null) {
Expand All @@ -81,7 +80,7 @@ public void callExtensionPoint(
}
}

// Find the location that was double clicked on...
// Find the location that was double-clicked on...
//
MouseEvent e = pipelineGraphExtension.getEvent();
Point point = pipelineGraphExtension.getPoint();
Expand All @@ -93,12 +92,13 @@ public void callExtensionPoint(
//
if (DataSetConst.AREA_DRAWN_INPUT_DATA_SET.equals(areaOwner.getParent())) {

// Open the dataset double clicked on...
// Open the dataset double-clicked on...
//
String transformName = (String) areaOwner.getOwner();

PipelineUnitTestSetLocation inputLocation = unitTest.findInputLocation(transformName);
if (inputLocation != null) {
pipelineGraphExtension.setPreventingDefault(true);
PipelineUnitTestSetLocationDialog dialog =
new PipelineUnitTestSetLocationDialog(
hopGui.getActiveShell(),
Expand All @@ -120,6 +120,7 @@ public void callExtensionPoint(

PipelineUnitTestSetLocation goldenLocation = unitTest.findGoldenLocation(transformName);
if (goldenLocation != null) {
pipelineGraphExtension.setPreventingDefault(true);
PipelineUnitTestSetLocationDialog dialog =
new PipelineUnitTestSetLocationDialog(
hopGui.getActiveShell(),
Expand Down Expand Up @@ -157,6 +158,7 @@ public void callExtensionPoint(
return;
}

pipelineGraphExtension.setPreventingDefault(true);
ValidatePipelineUnitTestExtensionPoint.showUnitTestErrors(pipeline, results, hopGui);
}
}
Expand Down
Loading