Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.AbstractTextEditor.selectAndReveal()


                        AbstractTextEditor te = (AbstractTextEditor)editor;
                        IDocument document = te.getDocumentProvider()
                            .getDocument(te.getEditorInput());
                        try {
                            int start = document.getLineOffset(_line - 1);
                            te.selectAndReveal(start, 0);
                            te.getSite().getPage().activate(te);
                        }
                        catch (BadLocationException ble) {

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