Package org.eclipse.xtext.ui.editor.contentassist

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


    super.completeQNameRef_Prefix(model, assignment, context, colonAddingAcceptor);
  }
  @Override
  public void completeQNameDef_Prefix(EObject model, Assignment assignment,
      ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    ICompletionProposalAcceptor colonAddingAcceptor=acceptor;
    if(!context.getCurrentNode().getText().contains(":")){
      colonAddingAcceptor=new ColonAddingAcceptor(acceptor);
    }
    super.completeQNameDef_Prefix(model, assignment, context, colonAddingAcceptor);
  }
View Full Code Here


  //so the user does not have to do it, the implemented hack avoids another
  //colon to be added in case there already is one
  @Override
  public void completeQNameRef_Prefix(EObject model, Assignment assignment,
      ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
    ICompletionProposalAcceptor colonAddingAcceptor=acceptor;
    if(!context.getCurrentNode().getText().contains(":")){
      colonAddingAcceptor=new ColonAddingAcceptor(acceptor);
    }
    super.completeQNameRef_Prefix(model, assignment, context, colonAddingAcceptor);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.