Examples of DefaultProblemFactory


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      }
      public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) {
        // Do nothing
      }
    };
    this.evaluateVariables(environment, options, variableRequestor, new DefaultProblemFactory(Locale.getDefault()));
  } catch (InstallException e) {
    // Do nothing
  }
  final char[] className = "CodeSnippetCompletion".toCharArray(); //$NON-NLS-1$
  final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper(
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

/*
*  Low-level API performing the actual compilation
*/
public IProblemFactory getProblemFactory() {
  return new DefaultProblemFactory(this.compilerLocale);
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

}
/**
* Creates a new parser.
*/
protected SourceElementParser getParser(Map settings) {
  return new SourceElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings), false/*don't report local declarations*/, true/*optimize string literals*/);
}
 
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    reconcileFlags = 0;
    problems = null;
  }
 
  boolean computeProblems = perWorkingCopyInfo != null && perWorkingCopyInfo.isActive() && project != null && JavaProject.hasJavaNature(project.getProject());
  IProblemFactory problemFactory = new DefaultProblemFactory();
  Map options = project == null ? JavaCore.getOptions() : project.getOptions(true);
  if (!computeProblems) {
    // disable task tags checking to speed up parsing
    options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      CompilerOptions compilerOptions = new CompilerOptions(options);
      Parser parser = new CommentRecorderParser(
        new ProblemReporter(
            DefaultErrorHandlingPolicies.proceedWithAllProblems(),
            compilerOptions,
            new DefaultProblemFactory()),
        false);
      int length = compilationUnits.length;
      if (monitor != null) monitor.beginTask("", length); //$NON-NLS-1$
      for (int i = 0; i < length; i++) {
        org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit = (org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit) compilationUnits[i];
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    compilerOptions.performStatementsRecovery = statementsRecovery;
    Parser parser = new CommentRecorderParser(
      new ProblemReporter(
          DefaultErrorHandlingPolicies.proceedWithAllProblems(),
          compilerOptions,
          new DefaultProblemFactory()),
      false);
    CompilationResult compilationResult = new CompilationResult(sourceUnit, 0, 0, compilerOptions.maxProblemsPerUnit);
    CompilationUnitDeclaration compilationUnitDeclaration = parser.dietParse(sourceUnit, compilationResult);

    if (compilationUnitDeclaration.ignoreMethodBodies) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    // for (int i =0 ;i<classpaths.length;i++) classpathModes[i]=ClasspathDirectory.BINARY;
    return new FileSystem(classpaths, filenames, defaultEncoding, ClasspathLocation.BINARY);
  }

  public IProblemFactory getProblemFactory() {
    return new DefaultProblemFactory(Locale.getDefault());
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

  Map options = project.getOptions(true);
  options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$
 
  SourceElementParser parser = new IndexingParser(
    requestor,
    new DefaultProblemFactory(Locale.getDefault()),
    new CompilerOptions(options),
    true, // index local declarations
    true, // optimize string literals
    false); // do not use source javadoc parser to speed up parsing
  parser.reportOnlyOneSyntaxError = true;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

}
/**
* Creates a new parser.
*/
protected DocumentElementParser getParser(Map settings) {
  return new DocumentElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings));
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      cpManager.setNameEnvironment(nameEnvironment);
    }

    // * an eclipse factory -- create from AjLookupEnvironment, need to hide AjBuildManager field
    AjProblemReporter pr = new AjProblemReporter(DefaultErrorHandlingPolicies.proceedWithAllProblems(), forCompiler.options,
        new DefaultProblemFactory(Locale.getDefault()));
    forCompiler.problemReporter = pr;
    AjLookupEnvironment le = new AjLookupEnvironment(forCompiler, forCompiler.options, pr, nameEnvironment);
    EclipseFactory eFactory = new EclipseFactory(le, myBcelWorld, ajOptions.xSerializableAspects);
    le.factory = eFactory;
    forCompiler.lookupEnvironment = le;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.