[jbosstools-commits] JBoss Tools SVN: r6818 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Mar 10 12:58:08 EDT 2008


Author: mareshkau
Date: 2008-03-10 12:58:08 -0400 (Mon, 10 Mar 2008)
New Revision: 6818

Modified:
   trunk/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: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java	2008-03-10 16:46:29 UTC (rev 6817)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java	2008-03-10 16:58:08 UTC (rev 6818)
@@ -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;
@@ -244,6 +245,13 @@
 	}
 
 	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();
+		}
+		comboField.forceFocus();
 		setPresentsDefaultValue(false);
 		boolean oldState = isValid;
 		refreshValidState();




More information about the jbosstools-commits mailing list