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); }
protected DiagnosticMessageContext(Triple<EObject, EReference, INode> triple, LinkingHelper helper) { this.triple = triple; this.linkingHelper = helper; }
public LinkingHelper getLinkingHelper() { return linkingHelper; }
public void setLinkingHelper(LinkingHelper linkingHelper) { this.linkingHelper = linkingHelper; }