Java Code Examples for org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory#findOrCreateTypeProvider()

The following examples show how to use org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory#findOrCreateTypeProvider() . 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: AbstractXbaseContentAssistBugTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected void initializeTypeProvider(XtextResource result) {
	XtextResourceSet resourceSet = (XtextResourceSet) result.getResourceSet();
	JdtTypeProviderFactory typeProviderFactory = new JdtTypeProviderFactory(this);
	typeProviderFactory.findOrCreateTypeProvider(resourceSet);
	resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
}
 
Example 2
Source File: AbstractHyperlinkingTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected void initializeTypeProvider(XtextResourceSet set) {
	JdtTypeProviderFactory typeProviderFactory = new JdtTypeProviderFactory(this);
	typeProviderFactory.findOrCreateTypeProvider(set);
	set.setClasspathURIContext(getJavaProject(set));
}
 
Example 3
Source File: AbstractContentAssistTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected void initializeTypeProvider(XtextResourceSet resourceSet) {
	JdtTypeProviderFactory typeProviderFactory = new JdtTypeProviderFactory(this);
	typeProviderFactory.findOrCreateTypeProvider(resourceSet);
	resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
}
 
Example 4
Source File: AbstractContentAssistTest.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected void initializeTypeProvider(final XtextResourceSet set) {
	final JdtTypeProviderFactory typeProviderFactory = new JdtTypeProviderFactory(this);
	typeProviderFactory.findOrCreateTypeProvider(set);
	set.setClasspathURIContext(getJavaProject(set));
}