Examples of computeCompletionProposals()


Examples of org.jboss.ide.eclipse.freemarker.editor.CompletionProcessor.computeCompletionProposals()

    int pos = find.findAndSelect(0, "<#", true, false, false); //$NON-NLS-1$
    ICompletionProposal[] proposals = proc.computeCompletionProposals(editor.getEditor().getTextViewer(),pos+2);
    assertTrue(proposals.length>0);

    pos = find.findAndSelect(0, "label(componentProperty.name)", true, false, false); //$NON-NLS-1$
    proposals = proc.computeCompletionProposals(editor.getEditor().getTextViewer(),pos);
    assertTrue(proposals.length>0);
  }

  public void testFreemarkerOutline() throws BackingStoreException {
View Full Code Here

Examples of org.python.pydev.django_templates.completions.templates.DjTemplateCompletionProcessor.computeCompletionProposals()

            }
        } else {
            processor = this.getTemplatesContentAssistProcessor();
        }

        djProposals = processor.computeCompletionProposals(viewer, offset);

        ArrayList<ICompletionProposal> djProposalsList = new ArrayList<ICompletionProposal>();
        for (int j = 0; j < djProposals.length; j++) {
            if (djProposals[j].getDisplayString().startsWith(str)) {
                ICompletionProposal p = djProposals[j];
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals()

      new PyEditor(project, file, viewer);
    PyContentAssistant assistant = new PyContentAssistant();
    PythonCompletionProcessor processor =
      new PythonCompletionProcessor(editor, assistant);
    ICompletionProposal[] results =
      processor.computeCompletionProposals(viewer, offset);
    return results;
  }

  @Override
  protected CodeCompleteResult createCodeCompletionResult(
View Full Code Here

Examples of org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals()

        IContentAssistant contentAssistant = editor.getEditConfiguration().getContentAssistant(
                editor.getPySourceViewer());
        SimpleAssistProcessor processor = (SimpleAssistProcessor) contentAssistant
                .getContentAssistProcessor(IDocument.DEFAULT_CONTENT_TYPE);
        processor.doCycle(); //we want to show the default completions in this case (not the simple ones)
        ICompletionProposal[] props = processor.computeCompletionProposals(editor.getPySourceViewer(),
                mod1Contents.length());
        return props;
    }

    /**
 
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.