KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > texteditor > ITextEditorExtension4


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.texteditor;
13
14 import org.eclipse.jface.text.revisions.RevisionInformation;
15 import org.eclipse.jface.text.source.Annotation;
16
17 /**
18  * Extension interface for {@link org.eclipse.ui.texteditor.ITextEditor}. Adds
19  * the following functions:
20  * <ul>
21  * <li>annotation navigation</li>
22  * <li>revision information display</li>
23  * </ul>
24  * <p>
25  * This interface may be implemented by clients.
26  * </p>
27  *
28  * @since 3.2
29  */

30 public interface ITextEditorExtension4 {
31
32     /**
33      * Jumps to the next annotation according to the given direction.
34      *
35      * @param forward <code>true</code> if search direction is forward, <code>false</code> if backward
36      * @return the selected annotation or <code>null</code> if none
37      */

38     public Annotation gotoAnnotation(boolean forward);
39
40     /**
41      * Shows revision information in this editor.
42      *
43      * @param info the revision information to display
44      * @param quickDiffProviderId the quick diff provider that matches the source of the revision
45      * information
46      */

47     public void showRevisionInformation(RevisionInformation info, String JavaDoc quickDiffProviderId);
48 }
49
Popular Tags