Package com.intellij.openapi.editor

Examples of com.intellij.openapi.editor.LazyRangeMarkerFactory


    public int getOffset(PsiFile file) {
        return getOffset(file, line, column);
    }

    public static int getOffset(PsiFile psiFile, int line, int col) {
        LazyRangeMarkerFactory factory = LazyRangeMarkerFactory.getInstance(psiFile.getProject());
        RangeMarker rangeMarker = factory.createRangeMarker(
            psiFile.getVirtualFile(), Math.max(0, line - 1), Math.max(0, col - 1), false
        );
        return rangeMarker.getStartOffset();
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.editor.LazyRangeMarkerFactory

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.