/** {@inheritDoc} */ @Override public Set<Binding> getGuiceBindingsRt(final Grammar grammar) { final BindFactory bindFactory = new BindFactory(); final String prefix = GrammarUtil.getNamespace(grammar) + ".scoping." + GrammarUtil.getName(grammar); bindFactory.addTypeToType(IScopeProvider.class.getName(), prefix + "ScopeProvider"); bindFactory.addTypeToType(IScopeNameProvider.class.getName(), prefix + "ScopeNameProvider"); bindFactory.addTypeToType(ILinkingService.class.getName(), "com.avaloq.tools.ddk.xtext.linking.LinkingService"); return bindFactory.getBindings(); }
@Override public Class<? extends ILinkingService> bindILinkingService() { return KronusLinkingService.class; }
protected ILinkingService getLinkingService() { return getInjector().getInstance(ILinkingService.class); }
public Class<? extends ILinkingService> bindILinkingService() { return DefaultLinkingService.class; }
public void setLinkingService(ILinkingService linkingService) { this.linkingService = linkingService; }
public ILinkingService getLinkingService() { return linkingService; }
@Override public Class<? extends ILinkingService> bindILinkingService() { return XtextLinkingService.class; }
@Override public Class<? extends ILinkingService> bindILinkingService() { return ScopeLinkingService.class; }
/** {@inheritDoc} */ @Override public Class<? extends ILinkingService> bindILinkingService() { return FormatLinkingService.class; }
@Override public Class<? extends ILinkingService> bindILinkingService() { return CheckLinkingService.class; }
@Override public Class<? extends ILinkingService> bindILinkingService() { return GamlLinkingService.class; }
protected ILinkingService getLinkingService() { if (linkingService == null) { linkingService = injector.getInstance(AgreeLinkingService.class); } return linkingService; }
/** * Customized to add linking diagnostics to EObjectDescriptions that are specially marked. * * @return Class<{@link ErrorAwareLinkingService}> */ @Override public Class<? extends ILinkingService> bindILinkingService() { return ErrorAwareLinkingService.class; }