org.eclipse.xtext.service.SingletonBinding Java Examples
The following examples show how to use
org.eclipse.xtext.service.SingletonBinding.
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: CrossRefTest.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@Override public void setUp() throws Exception { super.setUp(); with(new LangATestLanguageStandaloneSetup() { @Override public Injector createInjector() { return Guice.createInjector(new LangATestLanguageRuntimeModule() { @Override @SingletonBinding public Class<? extends ILinkingService> bindILinkingService() { return CrossRefLinkingService.class; } }); } }); crossRefSerializer = get(ICrossReferenceSerializer.class); grammar = (LangATestLanguageGrammarAccess) get(IGrammarAccess.class); }
Example #2
Source File: AbstractRuleEngineRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends RuleEngineValidator> bindRuleEngineValidator() { return RuleEngineValidator.class; }
Example #3
Source File: AbstractPartialSerializationTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends PartialSerializationTestLanguageValidator> bindPartialSerializationTestLanguageValidator() { return PartialSerializationTestLanguageValidator.class; }
Example #4
Source File: AbstractXtextGrammarTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends XtextGrammarTestLanguageValidator> bindXtextGrammarTestLanguageValidator() { return XtextGrammarTestLanguageValidator.class; }
Example #5
Source File: AbstractNoJdtTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends NoJdtTestLanguageValidator> bindNoJdtTestLanguageValidator() { return NoJdtTestLanguageValidator.class; }
Example #6
Source File: AbstractExBeeLangTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends ExBeeLangTestLanguageValidator> bindExBeeLangTestLanguageValidator() { return ExBeeLangTestLanguageValidator.class; }
Example #7
Source File: AbstractFileAwareTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends FileAwareTestLanguageValidator> bindFileAwareTestLanguageValidator() { return FileAwareTestLanguageValidator.class; }
Example #8
Source File: AbstractTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends TestLanguageValidator> bindTestLanguageValidator() { return TestLanguageValidator.class; }
Example #9
Source File: AbstractRenameTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends RenameTestLanguageValidator> bindRenameTestLanguageValidator() { return RenameTestLanguageValidator.class; }
Example #10
Source File: AbstractIndentationAwareUiTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends IndentationAwareUiTestLanguageValidator> bindIndentationAwareUiTestLanguageValidator() { return IndentationAwareUiTestLanguageValidator.class; }
Example #11
Source File: AbstractSimpleBeeLangTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends SimpleBeeLangTestLanguageValidator> bindSimpleBeeLangTestLanguageValidator() { return SimpleBeeLangTestLanguageValidator.class; }
Example #12
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.8 */ @SingletonBinding public Class<? extends IBracePairProvider> bindIBracePairProvider() { return DefaultBracePairProvider.class; }
Example #13
Source File: AbstractBuilderTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #14
Source File: AbstractBuilderTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends BuilderTestLanguageValidator> bindBuilderTestLanguageValidator() { return BuilderTestLanguageValidator.class; }
Example #15
Source File: AbstractArithmeticsRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends ArithmeticsValidator> bindArithmeticsValidator() { return ArithmeticsValidator.class; }
Example #16
Source File: AbstractArithmeticsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #17
Source File: DefaultXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager = true) public Class<? extends UniqueClassNameValidator> bindUniqueClassNameValidator() { return ProjectAwareUniqueClassNameValidator.class; }
Example #18
Source File: AbstractRuleEngineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #19
Source File: AbstractStatemachineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #20
Source File: AbstractStatemachineRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends StatemachineValidator> bindStatemachineValidator() { return StatemachineValidator.class; }
Example #21
Source File: AbstractDomainmodelRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends DomainmodelValidator> bindDomainmodelValidator() { return DomainmodelValidator.class; }
Example #22
Source File: AbstractDomainmodelUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #23
Source File: AbstractEcore2XtextTestRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends Ecore2XtextTestValidator> bindEcore2XtextTestValidator() { return Ecore2XtextTestValidator.class; }
Example #24
Source File: AbstractEcore2XtextTestUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #25
Source File: AbstractCodetemplatesRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends CodetemplatesValidator> bindCodetemplatesValidator() { return CodetemplatesValidator.class; }
Example #26
Source File: AbstractSingleCodetemplateRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends SingleCodetemplateValidator> bindSingleCodetemplateValidator() { return SingleCodetemplateValidator.class; }
Example #27
Source File: AbstractXtextUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
Example #28
Source File: SingleCodetemplateUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends CodetemplatesValidator> bindTemplatesJavaValidator() { return TemplateValidator.class; }
Example #29
Source File: CodetemplatesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager = true) public Class<? extends CodetemplatesValidator> bindTemplatesJavaValidator() { return TemplateValidator.class; }
Example #30
Source File: AbstractCodetemplatesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }