Quantum version 2.4.1
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / preferences / SQLEditorPreferences.java
index b1697ba..daf8164 100644 (file)
@@ -11,6 +11,7 @@ import org.eclipse.jface.preference.ColorFieldEditor;
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.preference.PreferenceConverter;
 import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.jface.resource.JFaceResources;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionEvent;
 import org.eclipse.swt.events.SelectionListener;
@@ -150,7 +151,8 @@ public class SQLEditorPreferences extends PreferencePage
                        public void widgetDefaultSelected(SelectionEvent e) {
                        }
                        public void widgetSelected(SelectionEvent e) {
-                               fontData = null;
+                               FontData[] temp =  JFaceResources.getTextFont().getFontData();
+                               fontData = temp == null || temp.length == 0 ? null : temp[0];
                                updateFontDisplay();
                        }
                });