Examples of PythonPairMatcher


Examples of org.python.pydev.core.docutils.PythonPairMatcher

            char c = doc.getChar(ps.getAbsoluteCursorOffset() - 1);
            boolean opening = StringUtils.isOpeningPeer(c);
            boolean closing = StringUtils.isClosingPeer(c);

            if (opening || closing) {
                PythonPairMatcher matcher = new PythonPairMatcher();
                IRegion match = matcher.match(doc, ps.getAbsoluteCursorOffset());
                if (match != null) {
                    if (closing) {
                        pyEdit.setSelection(match.getOffset() + 1, 0);
                    } else {//opening
                        pyEdit.setSelection(match.getOffset() + match.getLength(), 0);
View Full Code Here

Examples of org.python.pydev.core.docutils.PythonPairMatcher

    public static final char[] BRACKETS = { '{', '}', '(', ')', '[', ']', '<', '>' };

    public DjDoubleClickStrategy(String contentType) {
        super(contentType);
        fPairMatcher = new PythonPairMatcher(BRACKETS);
    }
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.