Example usage for org.eclipse.jdt.internal.core SearchableEnvironment SearchableEnvironment

List of usage examples for org.eclipse.jdt.internal.core SearchableEnvironment SearchableEnvironment

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core SearchableEnvironment SearchableEnvironment.

Prototype

@Deprecated
public SearchableEnvironment(JavaProject project, WorkingCopyOwner owner) throws JavaModelException 

Source Link

Document

Note: this is required for (abandoned) Scala-IDE

Usage

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);
}