public MySQLPreferencePage() {
super();
- setPreferenceStore(ExternalToolsPlugin.getDefault()
- .getPreferenceStore());
+
+ if (ExternalToolsPlugin.getDefault () != null) {
+ setPreferenceStore (ExternalToolsPlugin.getDefault().getPreferenceStore());
+ }
}
protected Control createContents(Composite parent) {
ExternalToolsPlugin.MYSQL_START_BACKGROUND,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.mySQLGroup.start_background"),
- composite);
+ composite);
mysqlStartBFE.setPage(this);
mysqlStartBFE.setPreferenceStore(getPreferenceStore());
mysqlStartBFE.load();
mySQLCommandSFE = new StringFieldEditor(ExternalToolsPlugin.MYSQL_PREF,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.mySQLGroup.command"),
- composite);
+ composite);
mySQLCommandSFE.setPage(this);
mySQLCommandSFE.setPreferenceStore(getPreferenceStore());
mySQLCommandSFE.load();
mysqlRunFFE = new FileFieldEditor(ExternalToolsPlugin.MYSQL_RUN_PREF,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.mySQLGroup.run"),
- composite);
+ composite);
mysqlRunFFE.setPage(this);
mysqlRunFFE.setPreferenceStore(getPreferenceStore());
mysqlRunFFE.load();