Package org.springframework.ide.eclipse.beans.ui.editor.contentassist

Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.IContentAssistContext


    }
   
   
    ContentAssistRequest contentAssistRequest = new ContentAssistRequest(nodeAtOffset, node, getStructuredDocumentRegion(documentPosition), completionRegion, offset, len, matchString);
    IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(contentAssistRequest);
    IContentAssistContext context = new DefaultContentAssistContext(contentAssistRequest, "xyz", //@TODO
        matchString);   
   
    BeansJavaCompletionUtils.addClassValueProposals(context, recorder, BeansJavaCompletionUtils.FLAG_PACKAGE | BeansJavaCompletionUtils.FLAG_CLASS | BeansJavaCompletionUtils.FLAG_INTERFACE);
    convertProposals(contentAssistRequest.getProposals());
   
View Full Code Here


          return JdtUtils.getJavaType(file.getProject(), className);
        }
      };
     
      IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(contentAssistRequest);
      IContentAssistContext context = new DefaultContentAssistContext(contentAssistRequest, "xyz", //FIXME
          prefix);         
     
      calculator.computeProposals(context, recorder); //request, prefix, null, null, null);
    }
  }
View Full Code Here

    return result;
  }

  private Set<ContentAssistProposalWrapper> computeProposals(String prefix, final IContentAssistCalculator calculator) {
    final QuickFixContentAssistProposalRecorder recorder = new QuickFixContentAssistProposalRecorder();
    final IContentAssistContext context = createContext(node, attributeName, file, prefix);

    calculator.computeProposals(context, recorder);
    return recorder.getProposals();
  }
View Full Code Here

      String attributeName, String namespace, String prefix) {
    if ("bean".equals(node.getNodeName())) {
      if (("http://www.springframework.org/schema/p".equals(namespace)
          || "http://www.springframework.org/schema/c".equals(namespace))
          && attributeName.endsWith("-ref")) {
        IContentAssistContext context = new DefaultContentAssistContext(request, attributeName, matchString);
        IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(request);
        addBeanReferenceProposals(context, recorder);
      }
    }
  }
View Full Code Here

      request = new ContentAssistRequest(input, input, input.getStartStructuredDocumentRegion(),
          getCompletionRegion(), position, contents.length(), contents);
    }

    // TODO: define a context and recorder that don't require a request.
    IContentAssistContext context = createContentAssistContext(contents);
    IContentAssistProposalRecorder recorder = createContentAssistRecorder();
    IContentAssistCalculator calc = createContentAssistCalculator();
    calc.computeProposals(context, recorder);

    ArrayList<IContentProposal> proposals = new ArrayList<IContentProposal>();
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.editor.contentassist.IContentAssistContext

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.