Author: mareshkau
Date: 2008-03-10 12:34:36 -0400 (Mon, 10 Mar 2008)
New Revision: 6816
Modified:
branches/jbosstools-2.0.x/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1694, workaround for linux was applied.
Modified:
branches/jbosstools-2.0.x/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
===================================================================
---
branches/jbosstools-2.0.x/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2008-03-10
16:17:51 UTC (rev 6815)
+++
branches/jbosstools-2.0.x/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2008-03-10
16:34:36 UTC (rev 6816)
@@ -21,6 +21,7 @@
import org.jboss.tools.common.model.ui.IValueProvider;
import org.jboss.tools.common.model.ui.attribute.IListContentProvider;
import org.jboss.tools.common.model.ui.attribute.adapter.DefaultValueAdapter;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.SWT;
@@ -42,7 +43,6 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Text;
-
import org.jboss.tools.common.model.ui.widgets.BorderedControl;
import org.jboss.tools.common.model.ui.widgets.IWidgetSettings;
import org.jboss.tools.common.model.ui.widgets.border.Border;
@@ -244,6 +244,12 @@
}
protected void valueChanged() {
+ //added by Max Areshkau
+ //hack which was applied for fix JBIDE-1694
+ if(comboField!=null&&Platform.OS_LINUX.equals(Platform.getOS())) {
+
+ comboField.forceFocus();
+ }
setPresentsDefaultValue(false);
boolean oldState = isValid;
refreshValidState();