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() {
* 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();
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);
Color defaultColor = manager.getColor(SQLColorConstants.DEFAULT);
backgroundColorEditor =
new ColorFieldEditor(
- "quantum.background.color",
+ "phpeclipse.sql.background.color",
"Background Color",
comp);
textColorEditor =
new ColorFieldEditor(
- "quantum.text.color",
+ "phpeclipse.sql.text.color",
"Default Text Color",
comp);
keywordColorEditor =
new ColorFieldEditor(
- "quantum.keyword.color",
+ "phpeclipse.sql.keyword.color",
"Keyword Text Color",
comp);
commentColorEditor =
new ColorFieldEditor(
- "quantum.comment.color",
+ "phpeclipse.sql.comment.color",
"Comment Text Color",
comp);
stringColorEditor =
new ColorFieldEditor(
- "quantum.string.color",
+ "phpeclipse.sql.string.color",
"String Text Color",
comp);
numericColorEditor =
new ColorFieldEditor(
- "quantum.numeric.color",
+ "phpeclipse.sql.numeric.color",
"Numeric Text Color",
comp);