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 43295e919d HopGuiFileDefaultFolder create wrong path on Windows #4073 
(#4080)
43295e919d is described below

commit 43295e919d7181a11c9e42efec566e207c211d19
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon Jun 24 20:59:54 2024 +0200

    HopGuiFileDefaultFolder create wrong path on Windows #4073 (#4080)
    
    Fix typo in log message
---
 .../main/java/org/apache/hop/projects/xp/HopGuiFileDefaultFolder.java  | 3 ++-
 .../hop/ui/hopgui/perspective/execution/PipelineExecutionViewer.java   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileDefaultFolder.java
 
b/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileDefaultFolder.java
index b0c5988af8..f52c76340f 100644
--- 
a/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileDefaultFolder.java
+++ 
b/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileDefaultFolder.java
@@ -18,6 +18,7 @@
 package org.apache.hop.projects.xp;
 
 import java.util.ArrayList;
+import org.apache.hop.core.Const;
 import org.apache.hop.core.extension.IExtensionPoint;
 import org.apache.hop.core.logging.ILogChannel;
 import org.apache.hop.core.logging.LogChannel;
@@ -87,7 +88,7 @@ public class HopGuiFileDefaultFolder implements 
IExtensionPoint<HopGuiFileDialog
     // maybe we should clean this up and in the audit split folder and filename
     // check if path ends with slash else remove filename
     int dotFound = filterPath.lastIndexOf(".");
-    int slashFound = filterPath.lastIndexOf("/");
+    int slashFound = filterPath.lastIndexOf(Const.FILE_SEPARATOR);
     filterPath =
         dotFound > slashFound && slashFound > 0 ? filterPath.substring(0, 
slashFound) : filterPath;
 
diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/execution/PipelineExecutionViewer.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/execution/PipelineExecutionViewer.java
index 71fafa662f..e3ca2a9127 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/execution/PipelineExecutionViewer.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/execution/PipelineExecutionViewer.java
@@ -326,7 +326,8 @@ public class PipelineExecutionViewer extends 
BaseExecutionViewer
             HopGuiExtensionPoint.PipelineExecutionViewerUpdate.id,
             this);
       } catch (Exception xe) {
-        LogChannel.UI.logError("Error handling extension point 
'HopGuiFileOpenDialog'", xe);
+        LogChannel.UI.logError(
+            "Error handling extension point 'PipelineExecutionViewerUpdate'", 
xe);
       }
     } catch (Exception e) {
       new ErrorDialog(getShell(), "Error", "Error refreshing pipeline status", 
e);

Reply via email to