import java.util.List;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.phpeditor.phpparser.PHPParser;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
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
} catch (IOException e) {
}
} else {
- PHPParser.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();
- PHPParser parser = new PHPParser(fileToParse);
+ PHPParserSuperclass parser = PHPParserManager.getParser(fileToParse);
try {
parser.parse(input);
} catch (CoreException e) {