added class fields to outline
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / DocumentElementParser.java
index 079b182..4bf670f 100644 (file)
  *******************************************************************************/
 package net.sourceforge.phpdt.internal.compiler;
 
-import net.sourceforge.phpdt.core.compiler.CharOperation;
 import net.sourceforge.phpdt.core.compiler.IProblem;
 import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
+import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
 import net.sourceforge.phpdt.internal.compiler.parser.UnitParser;
 import net.sourceforge.phpdt.internal.compiler.problem.AbortCompilation;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
 import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
 
-import org.eclipse.core.runtime.CoreException;
-
 
 /*
  * A document element parser extracts structural information
@@ -55,11 +53,11 @@ public class DocumentElementParser extends UnitParser {
        
 public DocumentElementParser(
        final IDocumentElementRequestor requestor, 
-       IProblemFactory problemFactory) {
-//     CompilerOptions options) {
+       IProblemFactory problemFactory,
+       CompilerOptions options) {
        super(new ProblemReporter(
                DefaultErrorHandlingPolicies.exitAfterAllProblems(), 
-//             options, 
+               options, 
                problemFactory) {
                public void record(IProblem problem, CompilationResult unitResult) {
                        requestor.acceptProblem(problem);
@@ -69,7 +67,7 @@ public DocumentElementParser(
 //     options.sourceLevel >= CompilerOptions.JDK1_4);
        this.requestor = requestor;
        intArrayStack = new int[30][];
-//     this.options = options;
+       this.options = options;
 }
 
 /**
@@ -1044,8 +1042,6 @@ public void parseCompilationUnit(ICompilationUnit unit) {
                scanner.resetTo(0, regionSource.length);
                scanner.setSource(regionSource);
                parse();
-       } catch (CoreException e) {
-               e.printStackTrace();
        } catch (AbortCompilation ex) {
        }
 }