Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-02-19 13:40:05 -0500
committerrelves2007-02-19 13:40:05 -0500
commitaf19fb419212fab82a50670c32388a270933b801 (patch)
tree4508b794bc866b301dcdee640313b4a2a265d34d
parentf844ed3c0cb29da76c53b381340d54700defdf83 (diff)
downloadorg.eclipse.mylyn.tasks-R_2_0_M1.tar.gz
org.eclipse.mylyn.tasks-R_2_0_M1.tar.xz
org.eclipse.mylyn.tasks-R_2_0_M1.zip
NEW - bug 174526: Task editor UI elements with no flat look on 1.0.1.v20070216-0900R_2_0_M1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=174526
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java16
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java2
2 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java
index 2f360f346..a8c107940 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java
@@ -39,6 +39,7 @@ import org.eclipse.mylar.tasks.ui.editors.TaskEditor;
import org.eclipse.mylar.tasks.ui.editors.TaskEditorInput;
import org.eclipse.mylar.tasks.ui.editors.TaskFormPage;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.ModifyEvent;
@@ -49,7 +50,6 @@ import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
@@ -113,9 +113,9 @@ public class TaskPlanningEditor extends TaskFormPage {
private Text issueReportURL;
- private Combo priorityCombo;
+ private CCombo priorityCombo;
- private Combo statusCombo;
+ private CCombo statusCombo;
private TextViewer noteEditor;
@@ -351,8 +351,9 @@ public class TaskPlanningEditor extends TaskFormPage {
statusComposite.setLayout(new GridLayout(6, false));
statusComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- priorityCombo = new Combo(statusComposite, SWT.FLAT);
-
+ priorityCombo = new CCombo(statusComposite, SWT.FLAT);
+ priorityCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
+
// Populate the combo box with priority levels
for (String priorityLevel : TaskListView.PRIORITY_LEVEL_DESCRIPTIONS) {
priorityCombo.add(priorityLevel);
@@ -381,8 +382,9 @@ public class TaskPlanningEditor extends TaskFormPage {
});
}
- statusCombo = new Combo(statusComposite, SWT.FLAT);
-
+ statusCombo = new CCombo(statusComposite, SWT.FLAT);
+ statusCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
+
statusCombo.add(LABEL_COMPLETE);
statusCombo.add(LABEL_INCOMPLETE);
if (task.isCompleted()) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index 46cd50e6b..8f9c7052a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -942,7 +942,7 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
attributeCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.READ_ONLY);
toolkit.adapt(attributeCombo, true, true);
attributeCombo.setFont(TEXT_FONT);
-
+ attributeCombo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
if (hasChanged(attribute)) {
attributeCombo.setBackground(backgroundIncoming);
}

Back to the top