Package org.python.pydev.core.docutils

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


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

    public DjDoubleClickStrategy(String contentType) {
        super(contentType);
        fPairMatcher = new PythonPairMatcher(BRACKETS);
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.core.docutils.PythonPairMatcher

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.