org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider. 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: CurrentModelBugTest.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
private ISetup getSetup() {
	return new DomainModelTestLanguageStandaloneSetup() {
		@Override
		public Injector createInjector() {
			return Guice.createInjector(Modules2.mixin(new DomainModelTestLanguageRuntimeModule(), new DomainModelTestLanguageUiModule(TestsActivator.getInstance()){

				@Override
				public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
					return MockedProposals.class;
				}
				
				@SuppressWarnings("unused")
				public CurrentModelBugTest bindCurrentModelBugTest() {
					return CurrentModelBugTest.this;
				}
			}, new SharedStateModule()));
		}
	};
}
 
Example #2
Source File: TwoContextsContentAssistTest.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * @return
 */
private ISetup getGrammarSetup() {
	return new TwoContextsTestLanguageStandaloneSetup() {
		@Override
		public Injector createInjector() {
			return Guice.createInjector(Modules2.mixin(
					new TwoContextsTestLanguageRuntimeModule(),
					new TwoContextsTestLanguageUiModule(TestsActivator.getInstance()){
				@Override
				public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
					return TwoContextsTestLanguageTestProposals.class;
				}
			},
			new SharedStateModule()));
		}
	};
}
 
Example #3
Source File: AbstractBug326948Test.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
public ISetup doGetSetup() {
	return new BeeLangTestLanguageStandaloneSetup() {
		@Override
		public Injector createInjector() {
			return Guice.createInjector(
					Modules2.mixin(
							new BeeLangTestLanguageRuntimeModule(), 
							new BeeLangTestLanguageUiModule(TestsActivator.getInstance()) {
								@Override
								public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
									return ProposalProvider.class;
								}
								
								@SuppressWarnings("unused")
								public AbstractBug326948Test bindTest() {
									return AbstractBug326948Test.this;
								}
							},
							new SharedStateModule()));
		}
	};
}
 
Example #4
Source File: ContentAssistCustomizingTest.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
public ISetup doGetSetup() {
	return new ContentAssistCustomizingTestLanguageStandaloneSetup() {
		@Override
		public Injector createInjector() {
			return Guice.createInjector(Modules2.mixin(
					new ContentAssistCustomizingTestLanguageRuntimeModule(),
					new ContentAssistCustomizingTestLanguageUiModule(TestsActivator.getInstance()) {
						@Override
						public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
							return TestableProposalProvider.class;
						}
						@SuppressWarnings("unused")
						public ContentAssistCustomizingTest bindTestClass() {
							return ContentAssistCustomizingTest.this;
						}
						@Override
						public Class<? extends ITemplateProposalProvider> bindITemplateProposalProvider() {
							return TestableTemplateProposalProvider.class;
						}
					}, new SharedStateModule()));
		}
	};
}
 
Example #5
Source File: AbstractBmTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return BmTestLanguageProposalProvider.class;
}
 
Example #6
Source File: AbstractContentAssistTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ContentAssistTestLanguageProposalProvider.class;
}
 
Example #7
Source File: AbstractXtypeUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return XtypeProposalProvider.class;
}
 
Example #8
Source File: AbstractXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return XbaseProposalProvider.class;
}
 
Example #9
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return RuleEngineProposalProvider.class;
}
 
Example #10
Source File: AbstractStatemachineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return StatemachineProposalProvider.class;
}
 
Example #11
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return DomainmodelProposalProvider.class;
}
 
Example #12
Source File: AbstractRefactoringTestLanguage1UiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return RefactoringTestLanguage1ProposalProvider.class;
}
 
Example #13
Source File: AbstractArithmeticsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ArithmeticsProposalProvider.class;
}
 
Example #14
Source File: AbstractXbaseWithAnnotationsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return XbaseWithAnnotationsProposalProvider.class;
}
 
Example #15
Source File: AbstractContentAssistFragmentTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ContentAssistFragmentTestLangProposalProvider.class;
}
 
Example #16
Source File: AbstractDatatypeRuleTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return DatatypeRuleTestLanguageProposalProvider.class;
}
 
Example #17
Source File: AbstractBug304681TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug304681TestLanguageProposalProvider.class;
}
 
Example #18
Source File: AbstractBug348427TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug348427TestLanguageProposalProvider.class;
}
 
Example #19
Source File: AbstractParametersTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ParametersTestLanguageProposalProvider.class;
}
 
Example #20
Source File: AbstractBug347012TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug347012TestLanguageProposalProvider.class;
}
 
Example #21
Source File: AbstractBug360834TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug360834TestLanguageProposalProvider.class;
}
 
Example #22
Source File: AbstractBug377311TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug377311TestLanguageProposalProvider.class;
}
 
Example #23
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return XtendProposalProvider.class;
}
 
Example #24
Source File: AbstractParametersTestLanguageExUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ParametersTestLanguageExProposalProvider.class;
}
 
Example #25
Source File: AbstractHelloWorldUiModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return HelloWorldProposalProvider.class;
}
 
Example #26
Source File: AbstractBug287941TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug287941TestLanguageProposalProvider.class;
}
 
Example #27
Source File: AbstractContentAssistNoTerminalExtensionTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return ContentAssistNoTerminalExtensionTestLanguageProposalProvider.class;
}
 
Example #28
Source File: AbstractTwoParametersTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return TwoParametersTestLanguageProposalProvider.class;
}
 
Example #29
Source File: AbstractBug288760TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug288760TestLanguageProposalProvider.class;
}
 
Example #30
Source File: AbstractBug348199TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
	return Bug348199TestLanguageProposalProvider.class;
}