当前位置: 首页>>代码示例>>Java>>正文


Java ICompletionProposalAcceptor类代码示例

本文整理汇总了Java中org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor的典型用法代码示例。如果您正苦于以下问题:Java ICompletionProposalAcceptor类的具体用法?Java ICompletionProposalAcceptor怎么用?Java ICompletionProposalAcceptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ICompletionProposalAcceptor类属于org.eclipse.xtext.ui.editor.contentassist包,在下文中一共展示了ICompletionProposalAcceptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: completeIntegerStopCondition_Pathtype

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
@Override
public void completeIntegerStopCondition_Pathtype(final EObject model, final Assignment assignment, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
  System.out.println("---> completeIntegerStopCondition_Pathtype");
  EList<EStructuralFeature> _eAllStructuralFeatures = model.eClass().getEAllStructuralFeatures();
  _eAllStructuralFeatures.forEach(new Consumer<EStructuralFeature>() {
    @Override
    public void accept(final EStructuralFeature t) {
      InputOutput.<String>println(t.getName());
    }
  });
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:12,代码来源:DSLPoliciesProposalProvider.java

示例2: complete_Percent

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
@Override
public void complete_Percent(final EObject model, final RuleCall ruleCall, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
  System.out.println("---> complete_Percent");
  for (int i = 1; (i <= 10); i++) {
    String _plus = (Integer.valueOf((10 * i)) + "");
    acceptor.accept(this.createCompletionProposal(_plus, context));
  }
  acceptor.accept(this.createCompletionProposal("<a_percentage_value>", context));
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:10,代码来源:DSLPoliciesProposalProvider.java

示例3: complete_WS

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
@Override
public void complete_WS(final EObject model, final RuleCall ruleCall, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
  System.out.println("---> complete_WS");
  super.complete_PathGeneratorStopCondition(model, ruleCall, context, acceptor);
  acceptor.accept(this.createCompletionProposal(";", context));
  for (final String elt : this.proposals) {
    acceptor.accept(this.createCompletionProposal((" " + elt), context));
  }
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:10,代码来源:DSLPoliciesProposalProvider.java

示例4: complete_ClearOption

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_ClearOption(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:4,代码来源:AbstractLcDslProposalProvider.java

示例5: completeShiftExpression_Rhs

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void completeShiftExpression_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例6: complete_ImportClause

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_ImportClause(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例7: completeGRelationExpression_Operator

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void completeGRelationExpression_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:4,代码来源:AbstractGExpressionsProposalProvider.java

示例8: complete_AssignmentOperator

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_AssignmentOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例9: completeWorkingDir_WorkingDir

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void completeWorkingDir_WorkingDir(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:4,代码来源:AbstractLcDslProposalProvider.java

示例10: completeBebidaFria_Foto

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void completeBebidaFria_Foto(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:4,代码来源:AbstractRestauranteProposalProvider.java

示例11: complete_BindingElementFragment

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_BindingElementFragment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例12: complete_FunctionBody

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_FunctionBody(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例13: completeGroupMember_Member

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void completeGroupMember_Member(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:4,代码来源:AbstractLcDslProposalProvider.java

示例14: complete_CharacterClass

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_CharacterClass(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractRegularExpressionProposalProvider.java

示例15: complete_WebDriverAction

import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; //导入依赖的package包/类
public void complete_WebDriverAction(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:hristo-vrigazov,项目名称:bromium,代码行数:4,代码来源:AbstractBromiumProposalProvider.java


注:本文中的org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。