Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2011-05-10 15:48:33 +0000
committernhauge2011-05-10 15:48:33 +0000
commit74b100290c4fcb56e96bacae6fa7ca3f932952df (patch)
treebcb822bfd65bfa582b4ca218ffd075d5513a9cd6 /common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui
parent9292fad32e74cbd9ab3a0fcbb5b349bb59419575 (diff)
downloadwebtools.dali-74b100290c4fcb56e96bacae6fa7ca3f932952df.tar.gz
webtools.dali-74b100290c4fcb56e96bacae6fa7ca3f932952df.tar.xz
webtools.dali-74b100290c4fcb56e96bacae6fa7ca3f932952df.zip
Reverting fix for 345011 until the bug is determined as necessary for RC1 and has been tested/reviewed.
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui')
-rw-r--r--common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/swt/ComboModelAdapter.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/swt/ComboModelAdapter.java b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/swt/ComboModelAdapter.java
index ea9513f387..39794a9cc7 100644
--- a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/swt/ComboModelAdapter.java
+++ b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/swt/ComboModelAdapter.java
@@ -9,7 +9,6 @@
******************************************************************************/
package org.eclipse.jpt.common.ui.internal.swt;
-import org.eclipse.jpt.common.utility.internal.ArrayTools;
import org.eclipse.jpt.common.utility.internal.StringConverter;
import org.eclipse.jpt.common.utility.model.value.ListValueModel;
import org.eclipse.jpt.common.utility.model.value.WritablePropertyValueModel;
@@ -205,17 +204,7 @@ public class ComboModelAdapter<E> extends AbstractComboModelAdapter<E> {
else {
this.selectedItem = null;
}
-
- int selectedIndex = ArrayTools.indexOf(this.combo.getItems(), item);
-
- // Select the item so combo.getSelectionIndex() does not return -1
- if (selectedIndex > -1) {
- this.combo.select(selectedIndex);
- }
- // In case some text is set even if there are no items
- else {
- this.combo.setText(item);
- }
+ this.combo.setText(item);
}
}
}

Back to the top