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

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


      final ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    String prefix=context.getPrefix();
    if(prefix==null || prefix.length()==0 || prefix.charAt(0)!=':'){
      return;
    }
    final ContentAssistContext newContext=context.copy().setMatcher(subStringMatcher).toContext();
    //the following seems to be the case if code completion is invoked on an empty prefix
    //in this case getting the previous model returns the actual node to be completed!?
    if(model instanceof PredicateObjectList){
      model=context.getPreviousModel();
    }
View Full Code Here

TOP

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

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.