Package org.python.pydev.editor.correctionassist.docstrings

Examples of org.python.pydev.editor.correctionassist.docstrings.AssistDocString


            }
        }

        assists.add(new AssistSurroundWith());
        assists.add(new AssistImport());
        assists.add(new AssistDocString());
        assists.add(new AssistAssign());
        assists.add(new AssistPercentToFormat());

        assists.addAll(ExtensionHelper.getParticipants(ExtensionHelper.PYDEV_CTRL_1));
        ImageCache imageCache = PydevPlugin.getImageCache();
View Full Code Here


    private AssistDocString assist;

    protected void setUp() throws Exception {
        super.setUp();
        assist = new AssistDocString();
    }
View Full Code Here

    }

    private void check(String expected, String initial, int proposals) throws BadLocationException {
        Document doc = new Document(initial);
        PySelection ps = new PySelection(doc, 0, 0);
        AssistDocString assist = new AssistDocString("@");
        List<ICompletionProposal> props = assist.getProps(ps, null, null, null, null, ps.getAbsoluteCursorOffset());
        assertEquals(proposals, props.size());
        if (props.size() > 0) {
            props.get(0).apply(doc);
            String expect = StringUtils.replaceNewLines(expected, "\n");
            String obtained = StringUtils.replaceNewLines(doc.get(), "\n");
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.correctionassist.docstrings.AssistDocString

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.