Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.CompletionContext


      return super.computeCompletionProposals(context, monitor);
    }

    JavaContentAssistInvocationContext javaContext = (JavaContentAssistInvocationContext) context;

    CompletionContext coreContext = javaContext.getCoreContext();
    if (coreContext != null) {
      int tokenLocation = coreContext.getTokenLocation();
      if ((tokenLocation & CompletionContext.TL_MEMBER_START) == 0) {
        return super.computeCompletionProposals(context, monitor);
      }
    }
View Full Code Here


 
  @Override
  public List<ICompletionProposal> computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {
    if (context instanceof JavaContentAssistInvocationContext && false) {
      JavaContentAssistInvocationContext javaContext= (JavaContentAssistInvocationContext) context;
      CompletionContext completionContext = javaContext.getCoreContext();
      IJavaElement enclosingElement= null;
      if( completionContext.isExtended() ) {
        enclosingElement = completionContext.getEnclosingElement()
      } else {
        try {
          enclosingElement = javaContext.getCompilationUnit().getElementAt(context.getInvocationOffset() + 1);
        } catch (JavaModelException e) {
          // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.CompletionContext

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.