List of usage examples for org.eclipse.jdt.internal.core SearchableEnvironment SearchableEnvironment
@Deprecated public SearchableEnvironment(JavaProject project, WorkingCopyOwner owner) throws JavaModelException
From source file:org.codehaus.groovy.eclipse.core.compiler.GroovySnippetCompiler.java
License:Open Source License
public GroovySnippetCompiler(GroovyProjectFacade project) { try {//from w ww . ja v a 2 s. co m nameEnvironment = new SearchableEnvironment((JavaProject) project.getProject(), (WorkingCopyOwner) null); } catch (JavaModelException e) { GroovyCore.logException( "Problem initializing snippet compiler for project " + project.getProject().getElementName(), e); } }
From source file:org.eclipse.jdt.internal.core.JavaProject.java
License:Open Source License
public SearchableEnvironment newSearchableNameEnvironment(ICompilationUnit[] workingCopies) throws JavaModelException { return new SearchableEnvironment(this, workingCopies); }
From source file:org.eclipse.jdt.internal.core.JavaProject.java
License:Open Source License
public SearchableEnvironment newSearchableNameEnvironment(WorkingCopyOwner owner) throws JavaModelException { return new SearchableEnvironment(this, owner); }
From source file:org.eclipse.objectteams.otdt.tests.otmodel.OTReconcilerTests.java
License:Open Source License
private void process(CompilationUnitDeclaration parsedUnit, IJavaProject p, CompilerOptions compilerOptions, ProblemReporter problemReporter, int state) throws JavaModelException { Parser parser = new Parser(problemReporter, false); INameEnvironment nameEnvironment = new SearchableEnvironment((JavaProject) p, this.wcOwner); Compiler compiler = new SourceTypeCompiler(nameEnvironment, DefaultErrorHandlingPolicies.proceedWithAllProblems(), compilerOptions, problemReporter.problemFactory); Dependencies.setup(this, parser, compiler.lookupEnvironment, true, false); Dependencies.ensureState(parsedUnit, state); }