From 299a90481e47cec383841617226704edc92353c6 Mon Sep 17 00:00:00 2001 From: kpouer Date: Thu, 27 Feb 2003 21:58:35 +0000 Subject: [PATCH] Added a constant to choose the parser --- .../sourceforge/phpeclipse/PHPeclipsePlugin.java | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java index 152ca9a..480c47a 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java @@ -61,6 +61,11 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon // public static final String PHP_RESOURCES_VIEW_ID = PLUGIN_ID + ".resourcesview.ViewPHPResources"; //$NON-NLS-1$ public static final String PHP_CODING_ACTION_SET_ID = PLUGIN_ID + ".ui.CodingActionSet"; //$NON-NLS-1$ + public static final String PHPPARSER_NEW = "test.PHPParser"; + public static final String PHPPARSER_ORIGINAL = "net.sourceforge.phpdt.internal.compiler.parser.Parser"; + + /** Change this if you want to switch PHP Parser) */ + public static final String PHPPARSER = PHPPARSER_ORIGINAL; //The shared instance. private static PHPeclipsePlugin plugin; @@ -70,7 +75,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon private ImageDescriptorRegistry fImageDescriptorRegistry; private PHPDocumentProvider fCompilationUnitDocumentProvider; /** - * The Java virtual machine that we are running on. + * The Java virtual machine that we are running on. */ private static int jvm; @@ -201,13 +206,13 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon // public static void logErrorStatus(String message, IStatus status) { // if (status == null) { // logErrorMessage(message); - // return; + // return; // } // MultiStatus multi= new MultiStatus(getPluginId(), JavaStatusConstants.INTERNAL_ERROR, message, null); // multi.add(status); // log(multi); // } - // + // // public static void log(Throwable e) { // log(new Status(IStatus.ERROR, getPluginId(), JavaStatusConstants.INTERNAL_ERROR, JavaUIMessages.getString("JavaPlugin.internal_error"), e)); //$NON-NLS-1$ // } @@ -314,7 +319,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon store.setDefault(PHP_OUTLINE_CLASS, "true"); //$NON-NLS-1$ store.setDefault(PHP_OUTLINE_FUNC, "true"); //$NON-NLS-1$ - store.setDefault(PHP_OUTLINE_VAR, "true"); //$NON-NLS-1$ + store.setDefault(PHP_OUTLINE_VAR, "true"); //$NON-NLS-1$ TemplatePreferencePage.initDefaults(store); new PHPSyntaxRdr(); //this will initialize the static fields in the syntaxrdr class -- 1.7.1