import java.util.ArrayList;
import java.util.List;
-import net.sourceforge.phpdt.internal.compiler.parser.Parser;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.texteditor.TextEditorAction;
+import test.PHPParserSuperclass;
+import test.PHPParserManager;
/**
- * Class that defines the action for parsing the current PHP file
+ * ClassDeclaration that defines the action for parsing the current PHP file
*/
public class PHPParserAction extends TextEditorAction {
} catch (IOException e) {
}
} else {
- Parser.phpExternalParse(fileToParse);
+ PHPParserSuperclass.phpExternalParse(fileToParse);
}
}
} catch (CoreException e) {
// identifier.append((char) c);
// try {
// while ((c = iStream.read()) != (-1)) {
- // if (Character.isJavaIdentifierPart((char) c)) {
+ // if (Scanner.isPHPIdentifierPart((char) c)) {
// identifier.append((char) c);
// // } else if ((i == 0) && (c == '$')) {
// // identifier.append((char)c);
}
String input = buf.toString();
- Parser parser = new Parser(fileToParse);
+ PHPParserSuperclass parser = PHPParserManager.getParser(fileToParse);
try {
parser.parse(input);
} catch (CoreException e) {