Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-12-15 19:44:22 +0000
committerspingel2010-12-15 19:44:22 +0000
commit31f21969c8a776d0f44443146262c15521e37d37 (patch)
tree3fae37b1e227a693250721f1cdeb2852b883e3c8 /org.eclipse.mylyn.tasks.ui
parent0e588fb4794dd49e4326aa611a872aacc2ccac82 (diff)
downloadorg.eclipse.mylyn.tasks-31f21969c8a776d0f44443146262c15521e37d37.tar.gz
org.eclipse.mylyn.tasks-31f21969c8a776d0f44443146262c15521e37d37.tar.xz
org.eclipse.mylyn.tasks-31f21969c8a776d0f44443146262c15521e37d37.zip
REOPENED - bug 331154: [api] extend TaskOperation to support tooltip and enablement
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331154
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionPart.java12
1 files changed, 8 insertions, 4 deletions
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 9a5620332..dff763ba9 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
@@ -380,8 +380,10 @@ public class TaskEditorActionPart extends AbstractTaskEditorPart {
Button button = toolkit.createButton(buttonComposite, operation.getLabel(), SWT.RADIO);
button.setFont(TEXT_FONT);
button.setData(KEY_OPERATION, operation);
- button.setEnabled(!operation.getTaskAttribute().getMetaData().isReadOnly());
- button.setToolTipText(operation.getTaskAttribute().getMetaData().getValue(TaskAttribute.META_DESCRIPTION));
+ //button.setEnabled(!operation.getTaskAttribute().getMetaData().isReadOnly());
+ button.setToolTipText(operation.getTaskAttribute()
+ .getMetaData()
+ .getValue(TaskAttribute.META_DESCRIPTION));
GridData radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
TaskAttribute associatedAttribute = getTaskData().getAttributeMapper().getAssoctiatedAttribute(
@@ -464,8 +466,10 @@ 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.setToolTipText(taskOperation.getTaskAttribute().getMetaData().getValue(TaskAttribute.META_DESCRIPTION));
+ //button.setEnabled(!taskOperation.getTaskAttribute().getMetaData().isReadOnly());
+ button.setToolTipText(taskOperation.getTaskAttribute()
+ .getMetaData()
+ .getValue(TaskAttribute.META_DESCRIPTION));
}
}
}

Back to the top