Package com.intellij.psi.impl.source.xml

Examples of com.intellij.psi.impl.source.xml.XmlTokenImpl


    public XmlElementSelectionNavigation(Editor editor, String direction){
        PsiElement element = PsiUtil.getElementAtCaret(editor);
        CaretModel caretModel = editor.getCaretModel();

        XmlTokenImpl token = (XmlTokenImpl) element;
        nextRange = getRangeFromToken(token, caretModel, direction);
        int startOffset = nextRange.getStartOffset();
        caretModel.moveToOffset(startOffset);
        SelectionModel selectionModel = editor.getSelectionModel();
        selectionModel.setSelection(startOffset, nextRange.getEndOffset());
View Full Code Here

TOP

Related Classes of com.intellij.psi.impl.source.xml.XmlTokenImpl

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.