Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IDocument.search()


        ITextEditor textEditor = (ITextEditor) editorPart;
        IDocumentProvider documentProvider = textEditor.getDocumentProvider();
        IDocument document = documentProvider.getDocument(textEditor.getEditorInput());
        // it's deprecated but the sse does not provide a
        // FindReplaceDocumentAdapter
        int offset = document.search(0, string, true, true, false);
        if (offset >= 0) {
          textEditor.selectAndReveal(offset, string.length());
        }
        // if (document instanceof IAdaptable) {
        // IAdaptable adaptable = (IAdaptable) document;
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.