public ApachePrefencePage() {
super();
- setPreferenceStore(ExternalToolsPlugin.getDefault()
- .getPreferenceStore());
+
+ if (ExternalToolsPlugin.getDefault () != null) {
+ setPreferenceStore (ExternalToolsPlugin.getDefault().getPreferenceStore());
+ }
}
protected Control createContents(Composite parent) {
apacheStartSFE = new StringFieldEditor(
ExternalToolsPlugin.APACHE_START_PREF, PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.start"),
- composite);
+ composite);
apacheStartSFE.setPage(this);
apacheStartSFE.setPreferenceStore(getPreferenceStore());
apacheStartSFE.load();
ExternalToolsPlugin.APACHE_START_BACKGROUND,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.start_background"),
- composite);
+ composite);
apacheStartBFE.setPage(this);
apacheStartBFE.setPreferenceStore(getPreferenceStore());
apacheStartBFE.load();
new Label(composite, SWT.NONE);
-
apacheStopSFE = new StringFieldEditor(
ExternalToolsPlugin.APACHE_STOP_PREF, PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.stop"),
- composite);
+ composite);
apacheStopSFE.setPage(this);
apacheStopSFE.setPreferenceStore(getPreferenceStore());
apacheStopSFE.load();
ExternalToolsPlugin.APACHE_STOP_BACKGROUND,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.stop_background"),
- composite);
+ composite);
apacheStopBFE.setPage(this);
apacheStopBFE.setPreferenceStore(getPreferenceStore());
apacheStopBFE.load();
new Label(composite, SWT.NONE);
-
apacheRestartSFE = new StringFieldEditor(
ExternalToolsPlugin.APACHE_RESTART_PREF,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.restart"),
- composite);
+ composite);
apacheRestartSFE.setPage(this);
apacheRestartSFE.setPreferenceStore(getPreferenceStore());
apacheRestartSFE.load();
ExternalToolsPlugin.APACHE_RESTART_BACKGROUND,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.restart_background"),
- composite);
+ composite);
apacheRestartBFE.setPage(this);
apacheRestartBFE.setPreferenceStore(getPreferenceStore());
apacheRestartBFE.load();
new Label(composite, SWT.NONE);
-
apacheRunFFE = new FileFieldEditor(ExternalToolsPlugin.APACHE_RUN_PREF,
PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.run"),
- composite);
+ composite);
apacheRunFFE.setPage(this);
apacheRunFFE.setPreferenceStore(getPreferenceStore());
apacheRunFFE.load();