/**
* @author
*/
-public class PHPEclipseSQLPlugin extends AbstractUIPlugin {
+public class PHPEclipseSQLPlugin extends AbstractUIPlugin implements IConstants {
+
private static final String BUNDLE_NAME =
"net.sourceforge.phpdt.sql.PHPEclipseSQLResources";
private static final ResourceBundle RESOURCE_BUNDLE =
public void startup() throws CoreException {
super.startup();
- ISaveParticipant saveParticipant = new QuantumSaveParticipant();
+ ISaveParticipant saveParticipant = new PHPSQLSaveParticipant();
ISavedState lastState =
ResourcesPlugin.getWorkspace().addSaveParticipant(this, saveParticipant);
if (lastState == null)
IPreferenceStore store = getPreferenceStore();
PreferenceConverter.setDefault(
store,
- "quantum.background.color",
+ "phpeclipse.sql.background.color",
BACKGROUND);
- PreferenceConverter.setDefault(store, "quantum.text.color", DEFAULT);
- PreferenceConverter.setDefault(store, "quantum.keyword.color", KEYWORD);
- PreferenceConverter.setDefault(store, "quantum.comment.color", COMMENT);
- PreferenceConverter.setDefault(store, "quantum.string.color", STRING);
- PreferenceConverter.setDefault(store, "quantum.numeric.color", NUMERIC);
- getPreferenceStore().setDefault("quantum.text.bold", false);
- getPreferenceStore().setDefault("quantum.keyword.bold", true);
- getPreferenceStore().setDefault("quantum.string.bold", false);
- getPreferenceStore().setDefault("quantum.comment.bold", false);
- getPreferenceStore().setDefault("quantum.numeric.bold", false);
+ PreferenceConverter.setDefault(store, "phpeclipse.sql.text.color", DEFAULT);
+ PreferenceConverter.setDefault(store, "phpeclipse.sql.keyword.color", KEYWORD);
+ PreferenceConverter.setDefault(store, "phpeclipse.sql.comment.color", COMMENT);
+ PreferenceConverter.setDefault(store, "phpeclipse.sql.string.color", STRING);
+ PreferenceConverter.setDefault(store, "phpeclipse.sql.numeric.color", NUMERIC);
+ getPreferenceStore().setDefault("phpeclipse.sql.text.bold", false);
+ getPreferenceStore().setDefault("phpeclipse.sql.keyword.bold", true);
+ getPreferenceStore().setDefault("phpeclipse.sql.string.bold", false);
+ getPreferenceStore().setDefault("phpeclipse.sql.comment.bold", false);
+ getPreferenceStore().setDefault("phpeclipse.sql.numeric.bold", false);
PreferenceConverter.setDefault(
getPreferenceStore(),
- "quantum.font",
+ "phpeclipse.sql.font",
(FontData) null);
}
}
-class QuantumSaveParticipant implements ISaveParticipant {
+class PHPSQLSaveParticipant implements ISaveParticipant, IConstants {
/**
* @see org.eclipse.core.resources.ISaveParticipant#doneSaving(ISaveContext)
*/
context.map(new Path("save"), new Path(saveFileName));
context.needSaveNumber();
} else {
+ if (DEBUG) {
System.out.println("Not saving unchanged bookmarks");
+ }
}
break;
case ISaveContext.PROJECT_SAVE :