You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/01/12 21:12:55 UTC
[incubator-hop] branch master updated: HOP-2419 Fix display tooltip
when transformation failed
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/incubator-hop.git
The following commit(s) were added to refs/heads/master by this push:
new 6f559b8 HOP-2419 Fix display tooltip when transformation failed
new 4c1c135 Merge pull request #551 from nadment/HOP-2419
6f559b8 is described below
commit 6f559b860e6e3e079099ff7cd7b69f6851ea5da4
Author: nadment <na...@gmail.com>
AuthorDate: Tue Jan 12 21:06:06 2021 +0100
HOP-2419 Fix display tooltip when transformation failed
- Fix display tooltip when transformation failed
- Remove unused AreaType TRANSFORM_ERROR_ICON replaced by
TRANSFORM_FAILURE_ICON
---
engine/src/main/java/org/apache/hop/core/gui/AreaOwner.java | 4 ++--
.../src/main/java/org/apache/hop/pipeline/PipelinePainter.java | 4 ++--
.../apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java | 9 ++-------
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/engine/src/main/java/org/apache/hop/core/gui/AreaOwner.java b/engine/src/main/java/org/apache/hop/core/gui/AreaOwner.java
index 20e3ff0..994e7ee 100644
--- a/engine/src/main/java/org/apache/hop/core/gui/AreaOwner.java
+++ b/engine/src/main/java/org/apache/hop/core/gui/AreaOwner.java
@@ -20,7 +20,7 @@ package org.apache.hop.core.gui;
import java.util.List;
/**
- * When we draw something in HopGui (PipelinePainter) we keep a list of all the things we draw and the object that's behind
+ * When we draw something in HopGui {@link org.apache.hop.pipeline.PipelinePainter} or {@link org.apache.hop.workflow.WorkflowPainter} we keep a list of all the things we draw and the object that's behind
* it. That should make it a lot easier to track what was drawn, setting tooltips, etc.
*
* @author Matt
@@ -28,7 +28,7 @@ import java.util.List;
public class AreaOwner<Parent, Owner> {
public enum AreaType {
- NOTE, TRANSFORM_PARTITIONING, TRANSFORM_ICON, TRANSFORM_NAME, TRANSFORM_ERROR_ICON, TRANSFORM_FAILURE_ICON,
+ NOTE, TRANSFORM_PARTITIONING, TRANSFORM_ICON, TRANSFORM_NAME, TRANSFORM_FAILURE_ICON,
TRANSFORM_INPUT_HOP_ICON, TRANSFORM_OUTPUT_HOP_ICON, TRANSFORM_INFO_HOP_ICON,
TRANSFORM_ERROR_HOP_ICON, TRANSFORM_TARGET_HOP_ICON,
HOP_COPY_ICON, ROW_DISTRIBUTION_ICON, HOP_ERROR_ICON,
diff --git a/engine/src/main/java/org/apache/hop/pipeline/PipelinePainter.java b/engine/src/main/java/org/apache/hop/pipeline/PipelinePainter.java
index 33dd438..ba4581d 100644
--- a/engine/src/main/java/org/apache/hop/pipeline/PipelinePainter.java
+++ b/engine/src/main/java/org/apache/hop/pipeline/PipelinePainter.java
@@ -894,8 +894,8 @@ public class PipelinePainter extends BasePainter<PipelineHopMeta, TransformMeta>
areaOwners.add(
new AreaOwner(
AreaType.TRANSFORM_FAILURE_ICON,
- pt.x + iconSize/2 - 8,
- pt.y - 8,
+ xError,
+ yError,
16,
16,
offset,
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 e530e0e..116ee1c 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
@@ -2704,14 +2704,9 @@ public class HopGuiPipelineGraph extends HopGuiAbstractGraph
.append(Const.CR);
}
break;
- case TRANSFORM_ERROR_ICON:
- String log = (String) areaOwner.getParent();
- tip.append(log);
- tipImage = GuiResource.getInstance().getImageError();
- break;
case TRANSFORM_FAILURE_ICON:
- String redLog = (String) areaOwner.getParent();
- tip.append(redLog);
+ String log = (String) areaOwner.getParent();
+ tip.append(log);
tipImage = GuiResource.getInstance().getImageFailure();
break;
case HOP_COPY_ICON: