org.eclipse.xtext.common.types.access.jdt.IJavaProjectProvider Java Examples
The following examples show how to use
org.eclipse.xtext.common.types.access.jdt.IJavaProjectProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContentAssistTest.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
public ISetup doGetSetup() { return new ContentAssistTestLanguageStandaloneSetup() { @Override public Injector createInjector() { return Guice.createInjector(Modules2.mixin( new ContentAssistTestLanguageRuntimeModule(), new ContentAssistTestLanguageUiModule(TestsActivator.getInstance()) { @Override public Class<? extends IJavaProjectProvider> bindIJavaProjectProvider() { return MockJavaProjectProvider.class; } }, new SharedStateModule())); } }; }
Example #2
Source File: CrySLParser.java From CogniCrypt with Eclipse Public License 2.0 | 5 votes |
public CrySLParser(IProject iProject) throws CoreException, IOException { final Injector injector = CrySLActivator.getInstance().getInjector(CrySLActivator.DE_DARMSTADT_TU_CROSSING_CRYSL); resourceSet = injector.getInstance(XtextResourceSet.class); if (iProject == null) { // if no project selected abort with error message iProject = Utils.complileListOfJavaProjectsInWorkspace().get(0); } if (iProject.isOpen()) { resourceSet.setClasspathURIContext(JavaCore.create(iProject)); } new JdtTypeProviderFactory(injector.getInstance(IJavaProjectProvider.class)).createTypeProvider(resourceSet); resourceSet.addLoadOption(XtextResource.OPTION_RESOLVE_ALL, Boolean.TRUE); }
Example #3
Source File: JdtBasedModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJavaProjectProvider> bindIJavaProjectProvider() { return XtextResourceSetBasedProjectProvider.class; }
Example #4
Source File: JdtTypesProposalProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void setProjectProvider(IJavaProjectProvider projectProvider) { this.projectProvider = projectProvider; }
Example #5
Source File: JdtTypesProposalProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public IJavaProjectProvider getProjectProvider() { return projectProvider; }
Example #6
Source File: DefaultCommonTypesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJavaProjectProvider> bindIJavaProjectProvider() { return XtextResourceSetBasedProjectProvider.class; }
Example #7
Source File: JavaElementFinder.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void setProjectProvider(IJavaProjectProvider projectProvider) { this.projectProvider = projectProvider; }
Example #8
Source File: JavaElementFinder.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public IJavaProjectProvider getProjectProvider() { return projectProvider; }
Example #9
Source File: JdtFallbackTypeProviderFactory.java From dsl-devkit with Eclipse Public License 1.0 | 3 votes |
/** * Creates a new instance of {@link JdtFallbackTypeProviderFactory}. * * @param javaProjectProvider * the {@link IJavaProjectProvider}, may be {@code null} * @param classLoader * the {@link ClassLoader}, must not be {@code null} * @param indexedJvmTypeAccess * the {@link IndexedJvmTypeAccess}, may be {@code null} */ @Inject public JdtFallbackTypeProviderFactory(final IJavaProjectProvider javaProjectProvider, final ClassLoader classLoader, final IndexedJvmTypeAccess indexedJvmTypeAccess, final TypeResourceServices typeResourceServices) { super(javaProjectProvider); this.classLoader = classLoader; this.indexedJvmTypeAccess = indexedJvmTypeAccess; this.typeResourceServices = typeResourceServices; }