Examples of AssistDocString


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

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

    private AssistDocString assist;

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

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

    }

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