Author: mareshkau
Date: 2010-10-22 09:00:51 -0400 (Fri, 22 Oct 2010)
New Revision: 25993
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
Log:
https://jira.jboss.org/browse/JBIDE-7382
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 2010-10-22
12:16:05 UTC (rev 25992)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2010-10-22
13:00:51 UTC (rev 25993)
@@ -171,7 +171,12 @@
if (bg==null) bg = Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);// bug with
gray bg
Color fg = getSettings().getColor("Combo.Foreground"); //$NON-NLS-1$
Font font = getSettings().getFont("Combo.Font"); //$NON-NLS-1$
- Border border = getSettings().getBorder("Combo.Border"); //$NON-NLS-1$
+ Border border = null; //$NON-NLS-1$
+ //Platform check has been added for not drawning black border for mac os
+ //added by Maksim Areshkau as fix for JBIDE-7382
+ if(!Platform.OS_MACOSX.equals(Platform.getOS())){
+ border = getSettings().getBorder("Combo.Border");
+ }
if (style == SWT.DEFAULT) style = defaultStyle;
if (isDropDown()) style = style | SWT.READ_ONLY;