Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-26 11:18:59 -0400
committermkersten2007-06-26 11:18:59 -0400
commit31b1bc0d76a841536da4b28495c28cfa7fab11ba (patch)
tree6bcafad162d49cd50cbc58c190aef38d76992814
parente1c829c2555c04763f651fdee94ae5709e6c502e (diff)
downloadorg.eclipse.mylyn.tasks-31b1bc0d76a841536da4b28495c28cfa7fab11ba.tar.gz
org.eclipse.mylyn.tasks-31b1bc0d76a841536da4b28495c28cfa7fab11ba.tar.xz
org.eclipse.mylyn.tasks-31b1bc0d76a841536da4b28495c28cfa7fab11ba.zip
NEW - bug 144161: Use trim bar to show currently active task
https://bugs.eclipse.org/bugs/show_bug.cgi?id=144161
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
index 3b948d51d..5628a5eb7 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskTrimWidget.java
@@ -153,7 +153,7 @@ public class TaskTrimWidget extends WorkbenchWindowControlContribution {
layout.numColumns = 1;
layout.horizontalSpacing = 0;
layout.marginHeight = 0;
- layout.marginLeft = 2;
+ layout.marginLeft = 0;
layout.marginRight = 0;
composite.setLayout(layout);
@@ -170,7 +170,12 @@ public class TaskTrimWidget extends WorkbenchWindowControlContribution {
gc.dispose();
activeTaskLabel = new TaskListHyperlink(container, SWT.RIGHT);
- activeTaskLabel.setLayoutData(new GridData(p.x, SWT.DEFAULT));
+ // activeTaskLabel.setLayoutData(new GridData(p.x, SWT.DEFAULT));
+ GridData gridData = new GridData(SWT.LEFT, SWT.CENTER, false, true);
+ gridData.widthHint = p.x;
+ gridData.minimumWidth = p.x;
+ gridData.horizontalIndent = 0;
+ activeTaskLabel.setLayoutData(gridData);
activeTaskLabel.setText("<no task active>");
activeTask = TasksUiPlugin.getTaskListManager().getTaskList().getActiveTask();

Back to the top