Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-11-18 22:53:23 -0500
committerGerrit Code Review @ Eclipse.org2013-11-19 23:02:55 -0500
commitdd225d1b77e88408f7365ca633b4ee678a7b60c4 (patch)
treed570e010f328153e1326d9f3bb6bca7eec16f773 /org.eclipse.mylyn.tasks.ui
parentd8315e4403aa2717b1119346882cfa471c7af422 (diff)
downloadorg.eclipse.mylyn.tasks-dd225d1b77e88408f7365ca633b4ee678a7b60c4.tar.gz
org.eclipse.mylyn.tasks-dd225d1b77e88408f7365ca633b4ee678a7b60c4.tar.xz
org.eclipse.mylyn.tasks-dd225d1b77e88408f7365ca633b4ee678a7b60c4.zip
421088: PriorityAttributeEditor change Priority Tooltip
Change-Id: Ie805d4ce481804b325004697058683e41aaa50a5 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=421088
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties1
3 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
index a05cb6202..49597de80 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/Messages.java
@@ -89,6 +89,8 @@ public class Messages extends NLS {
public static String PlanningPart_Today;
+ public static String PriorityAttributeEditor_Priority_Tooltip;
+
public static String RichTextAttributeEditor_Viewer_Source;
public static String TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java
index 367d3f350..10441d570 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java
@@ -11,6 +11,8 @@
package org.eclipse.mylyn.internal.tasks.ui.editors;
+import java.text.MessageFormat;
+
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
@@ -83,7 +85,7 @@ public class PriorityAttributeEditor extends AbstractAttributeEditor {
private void updateEditor() {
editor.select(getValue(), mapping.getPriorityLevel());
- editor.setToolTipText(getValueLabel());
+ editor.setToolTipText(MessageFormat.format(Messages.PriorityAttributeEditor_Priority_Tooltip, getValueLabel()));
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
index 249cff9df..cb12598c9 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/messages.properties
@@ -45,6 +45,7 @@ PlanningPart_Reset_Active_Time=Reset Active Time
PlanningPart_Scheduled_for_X_Tooltip=Scheduled for {0}
PlanningPart_This_Week=This Week
PlanningPart_Today=Today
+PriorityAttributeEditor_Priority_Tooltip=Priority: {0}
RichTextAttributeEditor_Viewer_Source=View Unformatted Text

Back to the top