import java.util.Iterator;
-import net.sourceforge.phpdt.internal.compiler.parser.Parser;
-
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
+import test.PHPParserSuperclass;
public class PHPExternalParserAction implements IObjectActionDelegate {
case IResource.FILE :
// single file:
IFile file = (IFile) resource;
- Parser.phpExternalParse(file);
+ PHPParserSuperclass.phpExternalParse(file);
}
}
}
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
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();
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
} catch (IOException e) {
}
} else {
- Parser.phpExternalParse(fileToParse);
+ PHPParserSuperclass.phpExternalParse(fileToParse);
}
}
} catch (CoreException e) {
}
String input = buf.toString();
- Parser parser = new Parser(fileToParse);
+ PHPParserSuperclass parser = PHPParserManager.getParser(fileToParse);
try {
parser.parse(input);
} catch (CoreException e) {