From ddc7285398daed7cc19e237c1333d8c212ac4b4d Mon Sep 17 00:00:00 2001 From: David McKnight Date: Tue, 23 May 2006 16:33:14 +0000 Subject: [PATCH] fix for 138324. Don't process combo selection until there is a change. --- .../org/eclipse/rse/ui/view/SystemComboBoxCellEditor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemComboBoxCellEditor.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemComboBoxCellEditor.java index 88c388e4ef9..5097561aac5 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemComboBoxCellEditor.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemComboBoxCellEditor.java @@ -125,6 +125,12 @@ public class SystemComboBoxCellEditor extends CellEditor comboBox.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { + + // DKM - only process this when there is a selection change + // fix for defect 138324 + if (selection == comboBox.getSelectionIndex()) + return; // no change + // must set the selection before getting value selection = comboBox.getSelectionIndex(); System.out.println("Inside widgetSelected. selection = " + selection);