class="com.quantum.preferences.SQLEditorPreferences"
id="com.quantum.preferences.editor">
</page>
- <page
+ <!-- <page
name="Copy"
category="com.quantum.preferences"
class="com.quantum.preferences.CopyPreferences"
id="com.quantum.preferences.copy">
</page>
- <!-- <page
+ <page
name="Custom Copy 1"
category="com.quantum.preferences.copy"
class="com.quantum.preferences.CustomCopyPreferences"
compilerOptionsPrefName=PHP Parser
todoTaskPrefName=Task Tags
templatePageName=Templates
+spellingPrefName=Spelling
#
# Extension point names
id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
</page>
<page
- name="PHP Parser"
+ name="PHP External Parser Command"
category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
- class="net.sourceforge.phpeclipse.PHPEclipseParserPreferencePage"
- id="net.sourceforge.phpeclipse.preference.PHPEclipseParserPreferencePage">
+ class="net.sourceforge.phpeclipse.preferences.PHPEclipseParserPreferencePage"
+ id="net.sourceforge.phpeclipse.preferences.PHPEclipseParserPreferencePage">
</page>
<!-- <page
name="Editor2"
id="net.sourceforge.phpeclipse.preference.PHPEditorPreferencePage">
</page> -->
<page
- name="Editor 2"
+ name="Editor"
category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
class="net.sourceforge.phpdt.internal.ui.preferences.JavaEditorPreferencePage"
id="net.sourceforge.phpdt.internal.ui.preferences.JavaEditorPreferencePage">
category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
class="net.sourceforge.phpeclipse.PHPLanguagePreferencePage"
id="net.sourceforge.phpeclipse.preference.PHPLanguagePreferencePage">
- </page> -->
+ </page>
<page
name="%spellingPrefName"
category= "net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
class="net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage"
id = "net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage">
- </page>
+ </page> -->
</extension>
<extension
point="org.eclipse.ui.editors.documentProviders">
item= new TabItem(folder, SWT.NONE);
item.setText(PreferencesMessages.getString("JavaEditorPreferencePage.hoverTab.title"));
//$NON-NLS-1$
- fJavaEditorHoverConfigurationBlock= new
- JavaEditorHoverConfigurationBlock(this, fOverlayStore);
+ fJavaEditorHoverConfigurationBlock= new JavaEditorHoverConfigurationBlock(this, fOverlayStore);
item.setControl(fJavaEditorHoverConfigurationBlock.createControl(folder));
- item= new TabItem(folder, SWT.NONE);
- item.setText(PreferencesMessages.getString("JavaEditorPreferencePage.navigationTab.title"));
- //$NON-NLS-1$
- item.setControl(createNavigationPage(folder));
+// item= new TabItem(folder, SWT.NONE);
+// item.setText(PreferencesMessages.getString("JavaEditorPreferencePage.navigationTab.title")); //$NON-NLS-1$
+// item.setControl(createNavigationPage(folder));
item= new TabItem(folder, SWT.NONE);
item.setText(PreferencesMessages.getString("JavaEditorPreferencePage.folding.title")); //$NON-NLS-1$
item.setControl(fFoldingConfigurationBlock.createControl(folder));
public static final String PHP_RUN_PREF = "_php_run_pref";
public static final String EXTERNAL_PARSER_PREF = "_external_parser";
public static final String PHP_PARSER_DEFAULT = "_php_parser_default";
- public static final String PHP_INTERNAL_PARSER = "_php_internal_parser";
- public static final String PHP_EXTERNAL_PARSER = "_php_external_parser";
+// public static final String PHP_INTERNAL_PARSER = "_php_internal_parser";
+// public static final String PHP_EXTERNAL_PARSER = "_php_external_parser";
// public static final String PHP_PARSE_ON_SAVE = "_php_parse_on_save";
public static final String PHP_MULTILINE_COMMENT = "_php_multilineComment";
public static final String PHP_MULTILINE_COMMENT_BOLD = "_php_multilineComment_bold";
store.setDefault(APACHE_START_BACKGROUND, "true");
store.setDefault(APACHE_STOP_BACKGROUND, "true");
store.setDefault(APACHE_RESTART_BACKGROUND, "true");
- store.setDefault(PHP_PARSER_DEFAULT, PHP_EXTERNAL_PARSER);
- store.setDefault(PHP_INTERNAL_PARSER, "false");
- store.setDefault(PHP_EXTERNAL_PARSER, "true");
+// store.setDefault(PHP_PARSER_DEFAULT, PHP_EXTERNAL_PARSER);
+// store.setDefault(PHP_INTERNAL_PARSER, "false");
+// store.setDefault(PHP_EXTERNAL_PARSER, "true");
// store.setDefault(PHP_PARSE_ON_SAVE, "true");
// show line numbers:
// store.setDefault(LINE_NUMBER_RULER, "false");
}
if (phpFlag) {
IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
- if (store.getString(PHPeclipsePlugin.PHP_PARSER_DEFAULT).equals(PHPeclipsePlugin.PHP_INTERNAL_PARSER)) {
-// // first delete all the previous markers
-// fileToParse.deleteMarkers(IMarker.PROBLEM, false, 0);
-//
-// //the tasks are removed here
-// fileToParse.deleteMarkers(IMarker.TASK, false, 0);
- PHPBuilder.removeProblemsAndTasksFor(fileToParse);
- // try {
- // InputStream iStream = fileToParse.getContents();
- parse(fileToParse); //, iStream);
- // iStream.close();
- // } catch (IOException e) {
- // }
- } else {
+// if (store.getString(PHPeclipsePlugin.PHP_PARSER_DEFAULT).equals(PHPeclipsePlugin.PHP_INTERNAL_PARSER)) {
+// PHPBuilder.removeProblemsAndTasksFor(fileToParse);
+// parse(fileToParse); //, iStream);
+// } else {
ExternalPHPParser parser = new ExternalPHPParser(fileToParse);
parser.phpExternalParse();
- }
+// }
}
-// } catch (CoreException e) {
-// }
-
}
/**
* Finds the file that's currently opened in the PHP Text Editor
-package net.sourceforge.phpeclipse;
+package net.sourceforge.phpeclipse.preferences;
-import net.sourceforge.phpeclipse.preferences.PHPPreferencesMessages;
+import net.sourceforge.phpeclipse.IPreferenceConstants;
+import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
// private ArrayList RadioButtons = new ArrayList();
- RadioGroupFieldEditor chooseParser;
+// RadioGroupFieldEditor chooseParser;
StringFieldEditor externalParserSFE;
// BooleanFieldEditor parseOnSave;
setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
setDescription(PHPPreferencesMessages.getString("PHPBasePreferencePage.description")); //$NON-NLS-1$
}
+
public void init(IWorkbench workbench) {
}
protected void performDefaults() {
- chooseParser.loadDefault();
+// chooseParser.loadDefault();
externalParserSFE.loadDefault();
// parseOnSave.loadDefault();
super.performDefaults();
}
public boolean performOk() {
- chooseParser.store();
+// chooseParser.store();
externalParserSFE.store();
// parseOnSave.store();
return super.performOk();
Composite composite = new Composite(parent, SWT.LEFT);
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
composite.setLayout(new GridLayout());
- //Create Websettings
- // Composite webSettingsComposite = new Composite(composite, SWT.NONE);
- // webSettingsComposite.setLayout(new GridLayout());
- // webSettingsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
//Create parser settings composite
Composite parserSettingsComposite = new Composite(composite, SWT.NONE);
parserSettingsGroup.setLayout(new GridLayout());
parserSettingsGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- chooseParser =
- new RadioGroupFieldEditor(
- IPreferenceConstants.PHP_PARSER_DEFAULT,
- PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.choose"),
- 1,
- new String[][] {
- { PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.internal"), IPreferenceConstants.PHP_INTERNAL_PARSER },
- {
- PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.external"), IPreferenceConstants.PHP_EXTERNAL_PARSER }
- }, parserSettingsGroup);
- chooseParser.setPreferencePage(this);
- chooseParser.setPreferenceStore(getPreferenceStore());
- chooseParser.load();
+// chooseParser =
+// new RadioGroupFieldEditor(
+// IPreferenceConstants.PHP_PARSER_DEFAULT,
+// PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.choose"),
+// 1,
+// new String[][] {
+// { PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.internal"), IPreferenceConstants.PHP_INTERNAL_PARSER },
+// {
+// PHPPreferencesMessages.getString("PHPBasePreferencePage.parsers.external"), IPreferenceConstants.PHP_EXTERNAL_PARSER }
+// }, parserSettingsGroup);
+// chooseParser.setPreferencePage(this);
+// chooseParser.setPreferenceStore(getPreferenceStore());
+// chooseParser.load();
//create a copmposte just for the StringEditor - makes layout simpler
Composite externalParserCompo = new Composite(parserSettingsGroup, SWT.NONE);
externalParserSFE =