X-Git-Url: http://hudson.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java index c5bd07a..ea9b4c2 100644 --- a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java +++ b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java @@ -50,7 +50,7 @@ public class PHPEclipseSQLPlugin extends AbstractUIPlugin implements IConstants 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) @@ -96,26 +96,26 @@ public class PHPEclipseSQLPlugin extends AbstractUIPlugin implements IConstants 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, IConstants { +class PHPSQLSaveParticipant implements ISaveParticipant, IConstants { /** * @see org.eclipse.core.resources.ISaveParticipant#doneSaving(ISaveContext) */ @@ -140,18 +140,18 @@ class QuantumSaveParticipant implements ISaveParticipant, IConstants { public void saving(ISaveContext context) throws CoreException { switch (context.getKind()) { case ISaveContext.FULL_SAVE : - PHPEclipseSQLPlugin quantumPluginInstance = PHPEclipseSQLPlugin.getDefault(); + PHPEclipseSQLPlugin sqlPluginInstance = PHPEclipseSQLPlugin.getDefault(); // save the plug in state if (BookmarkContentProvider.getInstance().hasChanged()) { int saveNumber = context.getSaveNumber(); String saveFileName = "save " + Integer.toString(saveNumber); File f = - quantumPluginInstance + sqlPluginInstance .getStateLocation() .append(saveFileName) .toFile(); // if we fail to write, an exception is thrown and we do not update the path - quantumPluginInstance.writeImportantState(f); + sqlPluginInstance.writeImportantState(f); context.map(new Path("save"), new Path(saveFileName)); context.needSaveNumber(); } else {