Java 类org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext 实例源码

项目:n4js    文件:AbstractRegularExpressionProposalProvider.java   
public void completeCharacterClassAtom_Character(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    // subclasses may override
    completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(18)), context, acceptor);
    completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(19)), context, acceptor);
    completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(20)), context, acceptor);
}
项目:gw4e.project    文件:DSLPoliciesProposalProvider.java   
@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());
    }
  });
}
项目:n4js    文件:ImportsAwareReferenceProposalCreator.java   
/**
 * Creates proposal taking semantics of the N4JS imports into account.
 *
 * @param candidate
 *            the original input for which we create proposal
 * @param reference
 *            the reference
 * @param context
 *            the context
 * @return candidate proposal adjusted to the N4JS imports
 */
private IEObjectDescription getAliasedDescription(IEObjectDescription candidate, EReference reference,
        ContentAssistContext context) {

    // Content assist at a location where only simple names are allowed:
    // We found a qualified name and we'd need an import to be allowed to use
    // that name. Consider only the simple name of the element from the index
    // and make sure that the import is inserted as soon as the proposal is applied
    QualifiedName inputQN = candidate.getName();
    int inputNameSegmentCount = inputQN.getSegmentCount();
    if (reference == N4JSPackage.Literals.IDENTIFIER_REF__ID && inputNameSegmentCount > 1)
        return new AliasedEObjectDescription(QualifiedName.create(inputQN.getLastSegment()), candidate);

    // filter out non-importable things:
    // globally provided things should never be imported:
    if (inputNameSegmentCount == 2 && N4TSQualifiedNameProvider.GLOBAL_NAMESPACE_SEGMENT
            .equals(inputQN.getFirstSegment()))
        return new AliasedEObjectDescription(QualifiedName.create(inputQN.getLastSegment()), candidate);

    // special handling for default imports:
    if (inputQN.getLastSegment().equals(N4JSLanguageConstants.EXPORT_DEFAULT_NAME)) {
        EObject element = candidate.getEObjectOrProxy();
        if (element instanceof TExportableElement) {
            TExportableElement exported = (TExportableElement) element;
            if (N4JSLanguageConstants.EXPORT_DEFAULT_NAME.equals(exported.getExportedName())) {
                return new AliasedEObjectDescription(inputQN, candidate);
            }
        }
        // not accessed via namespace
        QualifiedName nameNoDefault = inputQN.skipLast(1);
        QualifiedName moduleName = nameNoDefault.getSegmentCount() > 1
                ? QualifiedName.create(nameNoDefault.getLastSegment()) : nameNoDefault;
        return new AliasedEObjectDescription(moduleName, candidate);
    }
    // no special handling, return original input
    return candidate;
}
项目:n4js    文件:AbstractTypesProposalProvider.java   
public void complete_MemberAccessModifier(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:lcdsl    文件:AbstractLcDslProposalProvider.java   
public void completeLaunchConfig_SwInstallSupport(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractTypeExpressionsProposalProvider.java   
public void complete_ArrayTypeRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_ExportFromClause(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoProposalProvider.java   
public void completeDeck_Energy(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:bromium    文件:AbstractBromiumProposalProvider.java   
public void complete_ElementByCssToBePresent(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeBitwiseANDExpression_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_WhileStatement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:gemoc-studio    文件:AbstractGExpressionsProposalProvider.java   
public void completeGAdditionExpression_RightOperand(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_LetIdentifierRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoProposalProvider.java   
public void completeCard_Set(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeFieldDeclarationImpl_DeclaredOptional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_ACTUAL_REGEX_TAIL(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoProposalProvider.java   
public void complete_Pokemon(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:OCCI-Studio    文件:AbstractOCCIProposalProvider.java   
public void complete_Constraint(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractTypeExpressionsProposalProvider.java   
public void completeArrayTypeRef_TypeArgs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:lcdsl    文件:AbstractLcDslProposalProvider.java   
public void completeLaunchConfig_Plugins(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeAnnotatedN4MemberDeclaration_Generator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4MFProposalProvider.java   
public void complete_ModuleFilterSpecifier(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:org.xtext.dsl.restaurante    文件:RestauranteProposalProvider.java   
@Override
public void complete_Ingrediente(final EObject o, final RuleCall ruleCall, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
  ICompletionProposal propuesta = this.createCompletionProposal("Ingrediente: CODIGO \'NOMBRE\' infoURL: http://www.ejemplo.com", context);
  acceptor.accept(propuesta);
}
项目:gw4e.project    文件:AbstractDSLPoliciesProposalProvider.java   
public void complete_GraphPolicies(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslProposalProvider.java   
public void completeSelector_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:gemoc-studio    文件:AbstractGExpressionsProposalProvider.java   
public void complete_GStringExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:OCCI-Studio    文件:AbstractOCCIProposalProvider.java   
public void completeAttribute_Required(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractTypeExpressionsProposalProvider.java   
public void complete_IDENTIFIER_PART(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_NO_LINE_TERMINATOR(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeN4MethodDeclaration_DeclaredName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:OCCI-Studio    文件:AbstractOCCIProposalProvider.java   
public void completeAction_Attributes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeAnnotatedN4MemberDeclaration_DeclaredName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_BindingIdentifierAsVariableDeclaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:OCCI-Studio    文件:AbstractOCCIProposalProvider.java   
public void completeEnumerationLiteral_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void completeExportSpecifier_Element(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4MFProposalProvider.java   
public void completeInitModules_InitModules(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:OCCI-Studio    文件:AbstractOCCIProposalProvider.java   
public void completeEObjectType_Documentation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:gw4e.project    文件:AbstractDSLPoliciesProposalProvider.java   
public void completeModel_GraphPolicies(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
项目:n4js    文件:AbstractN4JSProposalProvider.java   
public void complete_VariableStatement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}
项目:n4js    文件:AbstractRegularExpressionProposalProvider.java   
public void complete_AtomEscape(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    // subclasses may override
}