Java Code Examples for org.eclipse.xtext.common.types.access.IJvmTypeProvider#Factory
The following examples show how to use
org.eclipse.xtext.common.types.access.IJvmTypeProvider#Factory .
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: AbstractXbaseContentAssistTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected final XtextResourceSet getResourceSet() { XtextResourceSet resourceSet = get(XtextResourceSet.class); IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(resourceSet); resourceSet.setClasspathURIContext(getJavaProject(resourceSet)); return resourceSet; }
Example 2
Source File: AbstractXbaseContentAssistTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected final XtextResourceSet getResourceSet() { XtextResourceSet resourceSet = get(XtextResourceSet.class); IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(resourceSet); resourceSet.setClasspathURIContext(getJavaProject(resourceSet)); return resourceSet; }
Example 3
Source File: AbstractXbaseContentAssistTest.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
protected final XtextResourceSet getResourceSet() { XtextResourceSet resourceSet = get(XtextResourceSet.class); IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(resourceSet); resourceSet.setClasspathURIContext(getJavaProject(resourceSet)); return resourceSet; }
Example 4
Source File: ClasspathBasedModule.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJvmTypeProvider.Factory> bindIJvmTypeProvider$Factory() { return ClasspathTypeProviderFactory.class; }
Example 5
Source File: DefaultCommonTypesRuntimeModule.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJvmTypeProvider.Factory> bindIJvmTypeProvider$Factory() { return ClasspathTypeProviderFactory.class; }
Example 6
Source File: Bug287941Test.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override protected void initializeTypeProvider(XtextResourceSet set) { IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(set); set.setClasspathURIContext(this); }
Example 7
Source File: ClasspathBasedModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJvmTypeProvider.Factory> bindIJvmTypeProvider$Factory() { return ClasspathTypeProviderFactory.class; }
Example 8
Source File: DefaultCommonTypesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IJvmTypeProvider.Factory> bindIJvmTypeProvider$Factory() { return org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory.class; }
Example 9
Source File: AbstractXtendContentAssistBugTest.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
protected void initializeTypeProvider(XtextResource result) { XtextResourceSet resourceSet = (XtextResourceSet) result.getResourceSet(); IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(resourceSet); resourceSet.setClasspathURIContext(getJavaProject(resourceSet)); }
Example 10
Source File: AbstractCheckContentAssistBugTest.java From dsl-devkit with Eclipse Public License 1.0 | 2 votes |
/** * Initializes the type provider used for accessing JvmTypes. * * @param set * the resource set */ protected void initializeTypeProvider(final XtextResourceSet set) { IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this); typeProviderFactory.findOrCreateTypeProvider(set); set.setClasspathURIContext(getJavaProject(set)); }
Example 11
Source File: AbstractTypeScopeProvider.java From xtext-extras with Eclipse Public License 2.0 | votes |
public abstract IJvmTypeProvider.Factory getTypeProviderFactory();