Package org.python.pydev.editor.codecompletion

Examples of org.python.pydev.editor.codecompletion.CompletionRequest


        if (documentOffset == -1) {
            documentOffset = strDoc.length();
        }

        IDocument doc = new Document(strDoc);
        CompletionRequest request = new CompletionRequest(file, nature, doc, documentOffset, codeCompletion);

        ICompletionState state = CompletionStateFactory.getEmptyCompletionState(nature, new CompletionCache());
        state.setTokenImportedModules(imports);
        List<Object> props = new ArrayList<Object>(participant.getGlobalCompletions(request, state));
        ICompletionProposal[] codeCompletionProposals = PyCodeCompletionUtils.onlyValidSorted(props, request.qualifier,
View Full Code Here


            String[] retCompl, PythonNature nature) throws Exception, MisconfigurationException {
        if (documentOffset == -1)
            documentOffset = strDoc.length();

        IDocument doc = new Document(strDoc);
        CompletionRequest request = new CompletionRequest(file, nature, doc, documentOffset, codeCompletion);

        List<Object> props = codeCompletion.getCodeCompletionProposals(null, request);
        ICompletionProposal[] codeCompletionProposals = PyCodeCompletionUtils.onlyValidSorted(props, request.qualifier,
                request.isInCalltip);
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.codecompletion.CompletionRequest

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.