Examples of computeCompletionProposals()


Examples of com.aptana.editor.common.contentassist.ICommonContentAssistProcessor.computeCompletionProposals()

            } catch (BadLocationException e) {
            }
        }
        if (this.htmlContentAssistProcessor instanceof ICommonContentAssistProcessor) {
            ICommonContentAssistProcessor commonContentAssistProcessor = (ICommonContentAssistProcessor) this.htmlContentAssistProcessor;
            proposals = commonContentAssistProcessor.computeCompletionProposals(viewer, offset, activationChar,
                    autoActivated);
        } else if (this.htmlContentAssistProcessor != null) {
            proposals = this.htmlContentAssistProcessor.computeCompletionProposals(viewer, offset);
        }
View Full Code Here

Examples of mmrnmhrm.ui.editor.codeassist.DeeCodeCompletionProcessor.computeCompletionProposals()

      @Override
      protected void testCompletionEngine(int offset, int rplLen) throws ModelException {
        ContentAssistant ca = getContentAssistant(editor);
       
        DeeCodeCompletionProcessor caProcessor = new DeeCodeCompletionProcessor(editor, ca, DeePartitions.DEE_CODE);
        ICompletionProposal[] proposals = caProcessor.computeCompletionProposals(editor.getViewer(), offset);
       
        for (ICompletionProposal completionProposal : proposals) {
          if(completionProposal instanceof ScriptTemplateProposal) {
            continue;
          }
View Full Code Here

Examples of org.codehaus.groovy.eclipse.codeassist.requestor.GroovyCompletionProposalComputer.computeCompletionProposals()

      new JavaContentAssistInvocationContext(viewer, offset, editor);

    IJavaCompletionProposalComputer computer =
      new GroovyCompletionProposalComputer();
    List<ICompletionProposal> proposals =
      computer.computeCompletionProposals(context, null);

    editor.close(false);

    if(proposals == null){
      proposals = Collections.emptyList();
View Full Code Here

Examples of org.eclipse.jdt.ui.text.java.IJavaCompletionProposalComputer.computeCompletionProposals()

      new JavaContentAssistInvocationContext(viewer, offset, editor);

    IJavaCompletionProposalComputer computer =
      new GroovyCompletionProposalComputer();
    List<ICompletionProposal> proposals =
      computer.computeCompletionProposals(context, null);

    editor.close(false);

    if(proposals == null){
      proposals = Collections.emptyList();
View Full Code Here

Examples of org.eclipse.jface.contentassist.ISubjectControlContentAssistProcessor.computeCompletionProposals()

    List ret = new LinkedList();
    for (Iterator it = fProcessors.iterator(); it.hasNext();) {
      Object o = it.next();
      if (o instanceof ISubjectControlContentAssistProcessor) {
        ISubjectControlContentAssistProcessor p = (ISubjectControlContentAssistProcessor) o;
        ICompletionProposal[] proposals = p.computeCompletionProposals(contentAssistSubjectControl, documentOffset);
        if (proposals != null && proposals.length > 0) {
          ret.addAll(Arrays.asList(proposals));
          fErrorMessage = null; // Hide previous errors
        } else {
          if (fErrorMessage == null && ret.isEmpty()) {
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeCompletionProposals()

        final MockSourceViewer sourceViewer = new MockSourceViewer(document, offset);
        final IContentAssistProcessor p = inStrings ? new ErlStringContentAssistProcessor(
                sourceViewer, module, project, null) : new ErlContentAssistProcessor(
                sourceViewer, module, project, null);
        final ICompletionProposal[] completionProposals = p.computeCompletionProposals(
                sourceViewer, offset);

        MatcherAssert.assertThat(ListExtensions.map(
                Lists.newArrayList(completionProposals),
                new Functions.Function1<ICompletionProposal, String>() {
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeCompletionProposals()

        !getLegacyExtendedContentAssistProcessors().isEmpty()) {
     
      Iterator iter = getLegacyExtendedContentAssistProcessors().iterator();
      while (iter.hasNext()) {
        IContentAssistProcessor legacyProcessor = (IContentAssistProcessor) iter.next();
        ICompletionProposal[] legacyComputed = legacyProcessor.computeCompletionProposals(viewer, offset);
        if (legacyComputed != null) {
          proposals.addAll(Arrays.asList(legacyComputed));
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeCompletionProposals()

      }
    }

    IContentAssistProcessor p = (IContentAssistProcessor) fPartitionToProcessorMap.get(partitionType);
    if (p != null) {
      embeddedResults = p.computeCompletionProposals(viewer, documentPosition);
      // get bean methods, objects, and constants if there are any...
      if (partitionType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT || partitionType == IHTMLPartitions.SCRIPT) {
        ICompletionProposal[] beanResults = getJSPJavaBeanProposals(viewer, documentPosition);
        if (beanResults != null && beanResults.length > 0) {
          ICompletionProposal[] added = new ICompletionProposal[beanResults.length + embeddedResults.length];
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeCompletionProposals()

   * @return ICompletionProposal[]
   */
  private ICompletionProposal[] getHTMLCompletionProposals(ITextViewer viewer, int documentPosition) {

    IContentAssistProcessor p = (IContentAssistProcessor) fPartitionToProcessorMap.get(IHTMLPartitions.HTML_DEFAULT);
    return p.computeCompletionProposals(viewer, documentPosition);
  }

  /**
   *
   * @param viewer
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeCompletionProposals()

        !getLegacyExtendedContentAssistProcessors().isEmpty()) {
     
      Iterator iter = getLegacyExtendedContentAssistProcessors().iterator();
      while (iter.hasNext()) {
        IContentAssistProcessor legacyProcessor = (IContentAssistProcessor) iter.next();
        ICompletionProposal[] legacyComputed = legacyProcessor.computeCompletionProposals(viewer, offset);
        if (legacyComputed != null) {
          proposals.addAll(Arrays.asList(legacyComputed));
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.