This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 52742295c9 Disable execution information perspective button when there 
are none, fixes #6298 (#6393)
52742295c9 is described below

commit 52742295c952a90a1b294b73f136b884db5e8642
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Thu Jan 15 16:06:52 2026 +0100

    Disable execution information perspective button when there are none, fixes 
#6298 (#6393)
---
 .../hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java   | 14 ++++++++++++++
 .../hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java   | 14 ++++++++++++++
 2 files changed, 28 insertions(+)

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 2f2c894c35..9e8e0be616 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
@@ -5213,6 +5213,20 @@ public class HopGuiPipelineGraph extends 
HopGuiAbstractGraph
               toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_STOP, running);
               toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_PAUSE, running && 
!paused);
 
+              // Enable/disable the navigate to execution info button
+              //
+              boolean hasExecutionInfoLocations = false;
+              try {
+                IHopMetadataSerializer<ExecutionInfoLocation> serializer =
+                    
hopGui.getMetadataProvider().getSerializer(ExecutionInfoLocation.class);
+                List<String> locationNames = serializer.listObjectNames();
+                hasExecutionInfoLocations = !locationNames.isEmpty();
+              } catch (Exception e) {
+                // Ignore, button will be disabled
+              }
+              toolBarWidgets.enableToolbarItem(
+                  TOOLBAR_ITEM_TO_EXECUTION_INFO, hasExecutionInfoLocations);
+
               hopGui.setUndoMenu(pipelineMeta);
               hopGui.handleFileCapabilities(fileType, 
pipelineMeta.hasChanged(), running, paused);
 
diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
index 6e89f5bb27..4621258585 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
@@ -3381,6 +3381,20 @@ public class HopGuiWorkflowGraph extends 
HopGuiAbstractGraph
               toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_START, !running);
               toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_STOP, running);
 
+              // Enable/disable the navigate to execution info button
+              //
+              boolean hasExecutionInfoLocations = false;
+              try {
+                IHopMetadataSerializer<ExecutionInfoLocation> serializer =
+                    
hopGui.getMetadataProvider().getSerializer(ExecutionInfoLocation.class);
+                List<String> locationNames = serializer.listObjectNames();
+                hasExecutionInfoLocations = !locationNames.isEmpty();
+              } catch (Exception e) {
+                // Ignore, button will be disabled
+              }
+              toolBarWidgets.enableToolbarItem(
+                  TOOLBAR_ITEM_TO_EXECUTION_INFO, hasExecutionInfoLocations);
+
               hopGui.setUndoMenu(workflowMeta);
               hopGui.handleFileCapabilities(fileType, 
workflowMeta.hasChanged(), running, false);
 

Reply via email to