import java.util.TreeSet;
import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo;
-import net.sourceforge.phpdt.internal.compiler.parser.Parser;
import net.sourceforge.phpdt.internal.compiler.parser.PHPSegment;
import net.sourceforge.phpdt.internal.compiler.parser.PHPSegmentWithChildren;
import net.sourceforge.phpdt.internal.ui.viewsupport.ImageDescriptorRegistry;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.views.contentoutline.ContentOutlinePage;
+import test.PHPParserSuperclass;
+import test.PHPParserManager;
/**
* A content outline page which always represents the functions of the
// StringBuffer identifier = new StringBuffer();
// while (i < textLength) {
// c = text.charAt(i++);
- // if (Character.isJavaIdentifierPart(c) || (c == '$')) {
+ // if (Scanner.isPHPIdentifierPart(c) || (c == '$')) {
// identifier.append(c);
// } else if ((i == firstIndex + 1) && (c == '$')) {
// identifier.append(c);
String name;
int index;
String text = document.get();
- Parser parser = new Parser(null);
+ PHPParserSuperclass parser = PHPParserManager.getParser(null);
PHPOutlineInfo outlineInfo = parser.parseInfo(fInput, text);
fVariables = outlineInfo.getVariables();