misc changes/refactorings
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / preferences / PreferencesPage.java
index 55129f0..c265deb 100644 (file)
@@ -67,17 +67,17 @@ public class PreferencesPage extends PreferencePage
                RGB NUMERIC = new RGB(255, 0, 0);
                RGB DEFAULT = new RGB(0, 0, 0);
                PreferenceConverter.setDefault(store,
-                       "quantum.background.color", BACKGROUND);
+                       "phpeclipse.sql.background.color", BACKGROUND);
                PreferenceConverter.setDefault(store,
-                       "quantum.text.color", DEFAULT);
+                       "phpeclipse.sql.text.color", DEFAULT);
                PreferenceConverter.setDefault(store,
-                       "quantum.keyword.color", KEYWORD);
+                       "phpeclipse.sql.keyword.color", KEYWORD);
                PreferenceConverter.setDefault(store,
-                       "quantum.comment.color", COMMENT);
+                       "phpeclipse.sql.comment.color", COMMENT);
                PreferenceConverter.setDefault(store,
-                       "quantum.string.color", STRING);
+                       "phpeclipse.sql.string.color", STRING);
                PreferenceConverter.setDefault(store,
-                       "quantum.numeric.color", NUMERIC);
+                       "phpeclipse.sql.numeric.color", NUMERIC);
        }
 
        protected void performDefaults() {
@@ -100,12 +100,12 @@ public class PreferencesPage extends PreferencePage
         * Save the preferences to the preference store.
         */
        public boolean performOk() {
-               PreferenceConverter.setValue(getPreferenceStore(), "quantum.font", fontData);
-               getPreferenceStore().setValue("quantum.text.bold", textFlag);
-               getPreferenceStore().setValue("quantum.keyword.bold", keywordFlag);
-               getPreferenceStore().setValue("quantum.string.bold", stringFlag);
-               getPreferenceStore().setValue("quantum.comment.bold", commentFlag);
-               getPreferenceStore().setValue("quantum.numeric.bold", numericFlag);
+               PreferenceConverter.setValue(getPreferenceStore(), "phpeclipse.sql.font", fontData);
+               getPreferenceStore().setValue("phpeclipse.sql.text.bold", textFlag);
+               getPreferenceStore().setValue("phpeclipse.sql.keyword.bold", keywordFlag);
+               getPreferenceStore().setValue("phpeclipse.sql.string.bold", stringFlag);
+               getPreferenceStore().setValue("phpeclipse.sql.comment.bold", commentFlag);
+               getPreferenceStore().setValue("phpeclipse.sql.numeric.bold", numericFlag);
                backgroundColorEditor.store();
                textColorEditor.store();
                keywordColorEditor.store();
@@ -121,12 +121,12 @@ public class PreferencesPage extends PreferencePage
                innerLayout.numColumns = 4;
                main.setLayout(innerLayout);
 
-               fontData = PreferenceConverter.getFontData(getPreferenceStore(), "quantum.font");
-               textFlag = getPreferenceStore().getBoolean("quantum.text.bold");
-               keywordFlag = getPreferenceStore().getBoolean("quantum.keyword.bold");
-               stringFlag = getPreferenceStore().getBoolean("quantum.string.bold");
-               commentFlag = getPreferenceStore().getBoolean("quantum.comment.bold");
-               numericFlag = getPreferenceStore().getBoolean("quantum.numeric.bold");
+               fontData = PreferenceConverter.getFontData(getPreferenceStore(), "phpeclipse.sql.font");
+               textFlag = getPreferenceStore().getBoolean("phpeclipse.sql.text.bold");
+               keywordFlag = getPreferenceStore().getBoolean("phpeclipse.sql.keyword.bold");
+               stringFlag = getPreferenceStore().getBoolean("phpeclipse.sql.string.bold");
+               commentFlag = getPreferenceStore().getBoolean("phpeclipse.sql.comment.bold");
+               numericFlag = getPreferenceStore().getBoolean("phpeclipse.sql.numeric.bold");
                
                fontDialog = new FontDialog(workbench.getActiveWorkbenchWindow().getShell());
                Button fontButton = new Button(main, SWT.PUSH);
@@ -172,7 +172,7 @@ public class PreferencesPage extends PreferencePage
                Color defaultColor = manager.getColor(SQLColorConstants.DEFAULT);
                backgroundColorEditor =
                        new ColorFieldEditor(
-                               "quantum.background.color",
+                               "phpeclipse.sql.background.color",
                                "Background Color",
                                comp);                          
 
@@ -186,7 +186,7 @@ public class PreferencesPage extends PreferencePage
                
                textColorEditor =
                        new ColorFieldEditor(
-                               "quantum.text.color",
+                               "phpeclipse.sql.text.color",
                                "Default Text Color",
                                comp);                          
 
@@ -208,7 +208,7 @@ public class PreferencesPage extends PreferencePage
 
                keywordColorEditor =
                        new ColorFieldEditor(
-                               "quantum.keyword.color",
+                               "phpeclipse.sql.keyword.color",
                                "Keyword Text Color",
                                comp);
 
@@ -230,7 +230,7 @@ public class PreferencesPage extends PreferencePage
 
                commentColorEditor =
                        new ColorFieldEditor(
-                               "quantum.comment.color",
+                               "phpeclipse.sql.comment.color",
                                "Comment Text Color",
                                comp);
 
@@ -252,7 +252,7 @@ public class PreferencesPage extends PreferencePage
 
                stringColorEditor =
                        new ColorFieldEditor(
-                               "quantum.string.color",
+                               "phpeclipse.sql.string.color",
                                "String Text Color",
                                comp);
 
@@ -274,7 +274,7 @@ public class PreferencesPage extends PreferencePage
 
                numericColorEditor =
                        new ColorFieldEditor(
-                               "quantum.numeric.color",
+                               "phpeclipse.sql.numeric.color",
                                "Numeric Text Color",
                                comp);