This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new 08fe6bdd70 Filter "Error handling" GuiAction if tranform doesn't
support it #3436
new 3b86ac22db Merge pull request #3438 from nadment/3436
08fe6bdd70 is described below
commit 08fe6bdd70d0deed0fa4cc4a801e1684f52e92d9
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon Nov 20 20:55:23 2023 +0100
Filter "Error handling" GuiAction if tranform doesn't support it #3436
---
.../apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
index 02c3043b3d..507331a09e 100644
---
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
+++
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
@@ -265,7 +265,8 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
"pipeline-graph-transform-10650-rows-copy";
public static final String
ACTION_ID_PIPELINE_GRAPH_TRANSFORM_ROWS_DISTRIBUTE =
"pipeline-graph-transform-10600-rows-distribute";
-
+ public static final String ACTION_ID_PIPELINE_GRAPH_TRANSFORM_ERROR_HANDLING
=
+ "pipeline-graph-transform-10800-error-handling";
public static final String
ACTION_ID_PIPELINE_GRAPH_TRANSFORM_VIEW_EXECUTION_INFO =
"pipeline-graph-transform-11000-view-execution-info";
@@ -2159,7 +2160,7 @@ public class HopGuiPipelineGraph extends
HopGuiAbstractGraph
}
@GuiContextAction(
- id = "pipeline-graph-transform-10800-error-handling",
+ id = ACTION_ID_PIPELINE_GRAPH_TRANSFORM_ERROR_HANDLING,
parentId = HopGuiPipelineTransformContext.CONTEXT_ID,
type = GuiActionType.Modify,
name = "i18n::HopGuiPipelineGraph.TransformAction.ErrorHandling.Name",
@@ -2440,6 +2441,10 @@ public class HopGuiPipelineGraph extends
HopGuiAbstractGraph
if (contextActionId.equals(ACTION_ID_PIPELINE_GRAPH_TRANSFORM_ROWS_COPY)) {
return context.getTransformMeta().isDistributes();
}
+ if
(contextActionId.equals(ACTION_ID_PIPELINE_GRAPH_TRANSFORM_ERROR_HANDLING)) {
+ return context.getTransformMeta().supportsErrorHandling();
+ }
+
if
(contextActionId.equals(ACTION_ID_PIPELINE_GRAPH_TRANSFORM_VIEW_EXECUTION_INFO))
{
// See if the pipeline is running and that the transform is running in
one or more copies.
// Also disable this if the running pipeline doesn't have a location
configured.