1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / editors / SQLConfiguration.java
index 10a5a3c..3ef4568 100644 (file)
@@ -2,8 +2,6 @@ package net.sourceforge.phpdt.sql.editors;
 
 import java.util.HashMap;
 
-import net.sourceforge.phpdt.sql.PHPEclipseSQLPlugin;
-
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.preference.PreferenceConverter;
 import org.eclipse.jface.text.IDocument;
@@ -16,6 +14,8 @@ import org.eclipse.swt.SWT;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.RGB;
 
+import net.sourceforge.phpdt.sql.PHPEclipseSQLPlugin;
+
 public class SQLConfiguration extends SourceViewerConfiguration {
        private PresentationReconciler reconciler = new PresentationReconciler();
        private ColorManager colorManager;
@@ -42,18 +42,18 @@ public class SQLConfiguration extends SourceViewerConfiguration {
        }
        public void loadPrefs() {
                IPreferenceStore store = PHPEclipseSQLPlugin.getDefault().getPreferenceStore();
-               textBold = store.getBoolean("quantum.text.bold");
-               keywordBold = store.getBoolean("quantum.keyword.bold");
-               stringBold = store.getBoolean("quantum.string.bold");
-               commentBold = store.getBoolean("quantum.comment.bold");
-               numericBold = store.getBoolean("quantum.numeric.bold");
-               SQLColorConstants.BACKGROUND = PreferenceConverter.getColor(store, "quantum.background.color");
-               SQLColorConstants.DEFAULT = PreferenceConverter.getColor(store, "quantum.text.color");
-               SQLColorConstants.IDENTIFIER = PreferenceConverter.getColor(store, "quantum.text.color");
-               SQLColorConstants.KEYWORD = PreferenceConverter.getColor(store, "quantum.keyword.color");
-               SQLColorConstants.STRING = PreferenceConverter.getColor(store, "quantum.string.color");
-               SQLColorConstants.COMMENT = PreferenceConverter.getColor(store, "quantum.comment.color");
-               SQLColorConstants.NUMERIC = PreferenceConverter.getColor(store, "quantum.numeric.color");
+               textBold = store.getBoolean("phpeclipse.sql.text.bold");
+               keywordBold = store.getBoolean("phpeclipse.sql.keyword.bold");
+               stringBold = store.getBoolean("phpeclipse.sql.string.bold");
+               commentBold = store.getBoolean("phpeclipse.sql.comment.bold");
+               numericBold = store.getBoolean("phpeclipse.sql.numeric.bold");
+               SQLColorConstants.BACKGROUND = PreferenceConverter.getColor(store, "phpeclipse.sql.background.color");
+               SQLColorConstants.DEFAULT = PreferenceConverter.getColor(store, "phpeclipse.sql.text.color");
+               SQLColorConstants.IDENTIFIER = PreferenceConverter.getColor(store, "phpeclipse.sql.text.color");
+               SQLColorConstants.KEYWORD = PreferenceConverter.getColor(store, "phpeclipse.sql.keyword.color");
+               SQLColorConstants.STRING = PreferenceConverter.getColor(store, "phpeclipse.sql.string.color");
+               SQLColorConstants.COMMENT = PreferenceConverter.getColor(store, "phpeclipse.sql.comment.color");
+               SQLColorConstants.NUMERIC = PreferenceConverter.getColor(store, "phpeclipse.sql.numeric.color");
        }
        public void initializeColors() {
                setDamageRepairer(getAttr(SQLColorConstants.KEYWORD, keywordBold), SQLPartitionScanner.SQL_KEYWORD);
@@ -66,7 +66,7 @@ public class SQLConfiguration extends SourceViewerConfiguration {
                setDamageRepairer(getAttr(SQLColorConstants.NUMERIC, numericBold), SQLPartitionScanner.SQL_NUMERIC);
        }
        public TextAttribute getAttr(RGB color, boolean bold) {
-               Color background = colorManager.getColor(SQLColorConstants.BACKGROUND);
+               colorManager.getColor(SQLColorConstants.BACKGROUND);
                Color foreground = colorManager.getColor(color);
                TextAttribute attr = new TextAttribute(foreground);
                if (bold) {