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

The following examples show how to use org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor. 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: SARLImportingTypesProposalProvider.java    From sarl with Apache License 2.0 5 votes vote down vote up
@Override
protected void createTypeProposal(String typeName, int modifiers, boolean isInnerType,
		ICompletionProposalFactory proposalFactory, ContentAssistContext context,
		ICompletionProposalAcceptor acceptor, IJvmTypeProvider jvmTypeProvider,
		IValueConverter<String> valueConverter) {
	super.createTypeProposal(typeName, modifiers, isInnerType, proposalFactory, context, acceptor, jvmTypeProvider,
			valueConverter);
}
 
Example #2
Source File: CodetemplatesProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void completeKeyword(Keyword keyword, ContentAssistContext contentAssistContext,
		ICompletionProposalAcceptor acceptor) {
	if ((mode & NORMAL) != 0) {
		if ("$".equals(keyword.getValue()) || "${".equals(keyword.getValue()))
			return;
		super.completeKeyword(keyword, contentAssistContext, acceptor);
	}
}
 
Example #3
Source File: ImplementMemberFromSuperAssist.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
public void createOverrideProposals(XtendTypeDeclaration model, ContentAssistContext context,
		ICompletionProposalAcceptor acceptor, IProposalConflictHelper conflictHelper) {
	final JvmDeclaredType inferredType = associations.getInferredType(model);
	List<IResolvedExecutable> overrideables = overrideProposalUtil.getImplementationCandidates(inferredType, model.isAnonymous());
	for (IResolvedExecutable overrideable : overrideables) {
		ICompletionProposal completionProposal = createOverrideMethodProposal(model, overrideable, context,	conflictHelper);
		if (completionProposal != null)
			acceptor.accept(completionProposal);
	}
}
 
Example #4
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void completeLiteralOrComputedPropertyName_LiteralName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #5
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_MultiplicativeOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #6
Source File: AbstractBug360834TestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeSimpleClassDeclaration_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #7
Source File: AbstractXbaseProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeXConstructorCall_TypeArguments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #8
Source File: AbstractXtextProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void complete_RuleNameAndParams(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #9
Source File: AbstractScopeProposalProvider.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_Casing(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #10
Source File: AbstractJSONProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_NameValuePair(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #11
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_BogusTypeRefFragment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #12
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_Elision(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #13
Source File: AbstractFormatProposalProvider.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public void completeConstant_IntValue(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #14
Source File: AbstractBug304681TestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeReference_ShortDescription(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #15
Source File: AbstractGamlProposalProvider.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public void completeS_Action_Facets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #16
Source File: AbstractYangProposalProvider.java    From yang-design-studio with Eclipse Public License 1.0 4 votes vote down vote up
public void complete_BelongsToStatement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #17
Source File: CodetemplatesProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public NestedContentAssistProcessorSwitch(ContentAssistContext context, ICompletionProposalAcceptor acceptor, TemplateData data) {
	this.context = context;
	this.acceptor = acceptor;
	this.data = data;
}
 
Example #18
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void completeLeftHandSideExpression_OptionalChaining(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #19
Source File: AbstractBromiumProposalProvider.java    From bromium with MIT License 4 votes vote down vote up
public void completePageLoad_ParameterValues(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #20
Source File: AbstractBacktrackingContentAssistTestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeLetExp_Variable(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #21
Source File: AbstractN4JSProposalProvider.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public void completeBindingElementFragment_HasInitializerAssignment(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #22
Source File: AbstractBug304681TestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeObject_LongDescription(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #23
Source File: AbstractBacktrackingContentAssistTestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void complete_unary(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #24
Source File: AbstractGamlProposalProvider.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public void completeComparison_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #25
Source File: AbstractGamlProposalProvider.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public void completeActionArguments_Args(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #26
Source File: AbstractPureXbaseProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void complete_SpecialBlockExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
Example #27
Source File: AbstractBug304681TestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeObject2_SerialVersionUID(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #28
Source File: AbstractBromiumProposalProvider.java    From bromium with MIT License 4 votes vote down vote up
public void completeSyntaxDefinition_Parameter(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #29
Source File: AbstractBeeLangTestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeConstructorCallExpression_ParameterList(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
Example #30
Source File: AbstractBug347012TestLanguageProposalProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void completeMyAttribute_PRIVATE(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}