01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.texteditor;
11:
12: import org.eclipse.jface.text.revisions.RevisionInformation;
13: import org.eclipse.jface.text.source.Annotation;
14:
15: /**
16: * Extension interface for {@link org.eclipse.ui.texteditor.ITextEditor}. Adds
17: * the following functions:
18: * <ul>
19: * <li>annotation navigation</li>
20: * <li>revision information display</li>
21: * </ul>
22: * <p>
23: * This interface may be implemented by clients.
24: * </p>
25: *
26: * @since 3.2
27: */
28: public interface ITextEditorExtension4 {
29:
30: /**
31: * Jumps to the next annotation according to the given direction.
32: *
33: * @param forward <code>true</code> if search direction is forward, <code>false</code> if backward
34: * @return the selected annotation or <code>null</code> if none
35: */
36: public Annotation gotoAnnotation(boolean forward);
37:
38: /**
39: * Shows revision information in this editor.
40: *
41: * @param info the revision information to display
42: * @param quickDiffProviderId the quick diff provider that matches the source of the revision
43: * information
44: */
45: public void showRevisionInformation(RevisionInformation info,
46: String quickDiffProviderId);
47: }
|