Package org.python.pydev.editor.codecompletion

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


        if (activationToken.equals("") && qualifier.equals("") == false) {
            for (String keyw : CodeCompletionPreferencesPage.getKeywords()) {
                if (keyw.startsWith(qualifier) && !keyw.equals(qualifier)) {
                    if (buildForConsole) {
                        //In the console, only show the simple completions without any special treatment
                        results.add(new PyCompletionProposal(keyw, offset - qlen, qlen, keyw.length(),
                                PyCompletionProposal.PRIORITY_DEFAULT));

                    } else {
                        //in the editor, we'll create a special proposal with more features
                        if (isPy3Syntax) {
View Full Code Here


        Image image = null; //may be null (testing)
        if (imageCache != null) {
            image = imageCache.get(UIConstants.ASSIST_DOCSTRING);
        }
        l.add(new PyCompletionProposal(comp, offsetPosToAdd, 0, newOffset, image, "Make docstring", null, null,
                IPyCompletionProposal.PRIORITY_DEFAULT) {
            public void apply(IDocument document) {
                //remove the next line if it is a pass...
                PySelection ps = new PySelection(document, fReplacementOffset);
                int iNextLine = ps.getCursorLine() + 1;
View Full Code Here

TOP

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

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.