Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-21 16:34:55 +0000
committermkersten2005-11-21 16:34:55 +0000
commitcd7721c465f665df134890c88014ead0f279c10e (patch)
treedf856819b4db3fcc216cec9d5accbf609910e237 /org.eclipse.mylyn.bugzilla.ui/src
parent878a1aadcaab4fed0a53a8b2e0206d335f308263 (diff)
downloadorg.eclipse.mylyn.tasks-cd7721c465f665df134890c88014ead0f279c10e.tar.gz
org.eclipse.mylyn.tasks-cd7721c465f665df134890c88014ead0f279c10e.tar.xz
org.eclipse.mylyn.tasks-cd7721c465f665df134890c88014ead0f279c10e.zip
Progress on: Bug 116493: mylar reopen closed editors on task acticvation
Report URL: https://bugs.eclipse.org/bugs/show_bug.cgi?id=116493
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
index 484b99962..0e298be17 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
@@ -600,7 +600,11 @@ public abstract class AbstractBugEditor extends EditorPart implements Listener {
for (int i = 0; i < a.length; i++) {
oSCombo.add(a[i]);
}
- oSCombo.select(oSCombo.indexOf(value));
+ if (oSCombo.indexOf(value) != -1) {
+ oSCombo.select(oSCombo.indexOf(value));
+ } else {
+ oSCombo.select(oSCombo.indexOf("All"));
+ }
oSCombo.addListener(SWT.Modify, this);
comboListenerMap.put(oSCombo, name);
oSCombo.addListener(SWT.FocusIn, new GenericListener());

Back to the top