Examples of toDocumentLineNumber()


Examples of org.eclipse.jface.text.source.IVerticalRuler.toDocumentLineNumber()

        IVerticalRuler ruler = testIface.getVerticalRuler();
       
        testIface.setTopIndex(lineNo-1);
       
        int y1 = 0, y2;
        while (ruler.toDocumentLineNumber(y1) < lineNo-1) y1++;
        y2 = y1;
        while (ruler.toDocumentLineNumber(y2) < lineNo) y2++;
       
        return ruler.getControl().toDisplay(ruler.getWidth()/3, y1+(y2-y1)/2);
    }
View Full Code Here

Examples of org.eclipse.jface.text.source.IVerticalRuler.toDocumentLineNumber()

        testIface.setTopIndex(lineNo-1);
       
        int y1 = 0, y2;
        while (ruler.toDocumentLineNumber(y1) < lineNo-1) y1++;
        y2 = y1;
        while (ruler.toDocumentLineNumber(y2) < lineNo) y2++;
       
        return ruler.getControl().toDisplay(ruler.getWidth()/3, y1+(y2-y1)/2);
    }
}
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.