org.eclipse.xtext.linking.impl.LinkingHelper Java Examples

The following examples show how to use org.eclipse.xtext.linking.impl.LinkingHelper. 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: PartialLinkingTest.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
protected void replaceLinker(XtextResource resource) {
	Linker linker = new Linker();
	DefaultLinkingService linkingService = new DefaultLinkingService();
	getInjector().injectMembers(linkingService);
	linkingService.setScopeProvider(this);
	linker.setLinkingService(linkingService);
	linker.setDiagnosticMessageProvider(new LinkingDiagnosticMessageProvider());
	linker.setLinkingHelper(getInjector().getInstance(LinkingHelper.class));
	resource.setLinker(linker);
}
 
Example #2
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected DiagnosticMessageContext(Triple<EObject, EReference, INode> triple, LinkingHelper helper) {
	this.triple = triple;
	this.linkingHelper = helper;
}
 
Example #3
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public LinkingHelper getLinkingHelper() {
	return linkingHelper;
}
 
Example #4
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void setLinkingHelper(LinkingHelper linkingHelper) {
	this.linkingHelper = linkingHelper;
}
 
Example #5
Source File: RenameService2.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected LinkingHelper getLinkingHelper() {
	return linkingHelper;
}
 
Example #6
Source File: AbstractSCTResource.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
protected DiagnosticMessageContext(Triple<EObject, EReference, INode> triple, LinkingHelper helper) {
	this.triple = triple;
	this.linkingHelper = helper;
}