Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-02-02 06:48:27 +0000
committerspingel2011-02-02 06:48:27 +0000
commit5fae28c73250e27b93f9a08b813379e7bbd1bc60 (patch)
tree757d9feb4fcabaea67059712b8d8817b4c54911e /org.eclipse.mylyn.tasks.ui
parent320824604158fda38435166d428b3337a068926d (diff)
downloadorg.eclipse.mylyn.tasks-5fae28c73250e27b93f9a08b813379e7bbd1bc60.tar.gz
org.eclipse.mylyn.tasks-5fae28c73250e27b93f9a08b813379e7bbd1bc60.tar.xz
org.eclipse.mylyn.tasks-5fae28c73250e27b93f9a08b813379e7bbd1bc60.zip
ASSIGNED - bug 331626: [api] attribute editors should have a tooltip
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331626
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityAttributeEditor.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java2
2 files changed, 2 insertions, 6 deletions
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 1ca6eaf28..98fa005e2 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
@@ -98,11 +98,7 @@ public class PriorityAttributeEditor extends AbstractAttributeEditor {
private void updateEditor() {
editor.select(getValue(), mapping.getPriorityLevel());
- String toolTip = getValueLabel();
- if (toolTip != null && !toolTip.equals("")) {
- toolTip = getDescription();
- }
- editor.setToolTipText(toolTip);
+ editor.setToolTipText(getValueLabel());
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
index dff763ba9..f20876b82 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java
@@ -466,7 +466,7 @@ public class TaskEditorActionPart extends AbstractTaskEditorPart {
public void refreshOperations() {
for (Button button : operationButtons) {
TaskOperation taskOperation = (TaskOperation) button.getData(KEY_OPERATION);
- //button.setEnabled(!taskOperation.getTaskAttribute().getMetaData().isReadOnly());
+ button.setEnabled(!taskOperation.getTaskAttribute().getMetaData().isDisabled());
button.setToolTipText(taskOperation.getTaskAttribute()
.getMetaData()
.getValue(TaskAttribute.META_DESCRIPTION));

Back to the top