org.eclipse.xtext.linking.ILinkingService Java Examples

The following examples show how to use org.eclipse.xtext.linking.ILinkingService. 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: ScopingFragment.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/** {@inheritDoc} */
@Override
public Set<Binding> getGuiceBindingsRt(final Grammar grammar) {
  final BindFactory bindFactory = new BindFactory();
  final String prefix = GrammarUtil.getNamespace(grammar) + ".scoping." + GrammarUtil.getSimpleName(grammar); //$NON-NLS-1$

  bindFactory.addTypeToType(IScopeProvider.class.getName(), prefix + "ScopeProvider"); //$NON-NLS-1$
  bindFactory.addTypeToType(IScopeNameProvider.class.getName(), prefix + "ScopeNameProvider"); //$NON-NLS-1$
  bindFactory.addTypeToType(ILinkingService.class.getName(), "com.avaloq.tools.ddk.xtext.linking.LinkingService"); //$NON-NLS-1$

  return bindFactory.getBindings();
}
 
Example #2
Source File: AbstractXtextTests.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
protected ILinkingService getLinkingService() {
	return getInjector().getInstance(ILinkingService.class);
}
 
Example #3
Source File: AbstractXtextTests.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected ILinkingService getLinkingService() {
	return getInjector().getInstance(ILinkingService.class);
}
 
Example #4
Source File: DefaultRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ILinkingService> bindILinkingService() {
	return DefaultLinkingService.class;
}
 
Example #5
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void setLinkingService(ILinkingService linkingService) {
	this.linkingService = linkingService;
}
 
Example #6
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public ILinkingService getLinkingService() {
	return linkingService;
}
 
Example #7
Source File: Linker.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public ILinkingService getLinkingService() {
	return linkingService;
}
 
Example #8
Source File: Linker.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void setLinkingService(ILinkingService linkingService) {
	this.linkingService = linkingService;
}
 
Example #9
Source File: XtextRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Class<? extends ILinkingService> bindILinkingService() {
	return XtextLinkingService.class;
}
 
Example #10
Source File: XtextTerminalsTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Class<? extends ILinkingService> bindILinkingService() {
	return XtextLinkingService.class;
}
 
Example #11
Source File: AbstractXtextTests.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected ILinkingService getLinkingService() {
	return getInjector().getInstance(ILinkingService.class);
}
 
Example #12
Source File: ScopeRuntimeModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Class<? extends ILinkingService> bindILinkingService() {
  return ScopeLinkingService.class;
}
 
Example #13
Source File: FormatRuntimeModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override
public Class<? extends ILinkingService> bindILinkingService() {
  return FormatLinkingService.class;
}
 
Example #14
Source File: CheckRuntimeModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Class<? extends ILinkingService> bindILinkingService() {
  return CheckLinkingService.class;
}
 
Example #15
Source File: GamlRuntimeModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Class<? extends ILinkingService> bindILinkingService() {
	return GamlLinkingService.class;
}
 
Example #16
Source File: N4JSRuntimeModule.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Customized to add linking diagnostics to EObjectDescriptions that are specially marked.
 *
 * @return Class<{@link ErrorAwareLinkingService}>
 */
@Override
public Class<? extends ILinkingService> bindILinkingService() {
	return ErrorAwareLinkingService.class;
}