Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-07-16 14:59:15 +0000
committerMarkus Keller2012-07-16 15:03:32 +0000
commitb23e4756a7b0547ec36aea62e2b7574bd35b94ad (patch)
tree83a77992c9925278b0d6b680e2464c21b03572ce
parent511097fc5050058b0476a938f3b519c2e6fa4fab (diff)
downloadeclipse.platform.ui-b23e4756a7b0547ec36aea62e2b7574bd35b94ad.tar.gz
eclipse.platform.ui-b23e4756a7b0547ec36aea62e2b7574bd35b94ad.tar.xz
eclipse.platform.ui-b23e4756a7b0547ec36aea62e2b7574bd35b94ad.zip
Bug 383570: [Progress] Progress view duplicates job name
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
index 76903c7a51e..d2c1afe8e35 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
@@ -812,9 +812,6 @@ public class ProgressInfoItem extends Composite {
link = (Link) taskEntries.get(index);
}
- link.setToolTipText(taskString);
- link.setData(TEXT_KEY, taskString);
-
// check for action property
Object actionProperty = linkJob
.getProperty(IProgressConstants.ACTION_PROPERTY);
@@ -830,6 +827,14 @@ public class ProgressInfoItem extends Composite {
updateTrigger(property, link);
}
+ if (link.getData(TRIGGER_KEY) == null
+ && (taskString == null || taskString.equals(getMainTitle()))) {
+ // workaround for https://bugs.eclipse.org/383570
+ taskString = ""; //$NON-NLS-1$
+ }
+ link.setToolTipText(taskString);
+ link.setData(TEXT_KEY, taskString);
+
updateText(taskString, link);
}

Back to the top