Examples of XmlTokenImpl


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