KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > source > ISourceViewerExtension2


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.jface.text.source;
13
14 /**
15  * Extension interface for {@link org.eclipse.jface.text.source.ISourceViewer}.<p>
16  * Allows the source viewer to roll back a previous configuration process and allows
17  * clients access to the viewer's visual annotation model.
18  *
19  * @since 3.0
20  */

21 public interface ISourceViewerExtension2 {
22
23     /**
24      * Rolls back the configuration process of this source viewer. The source
25      * viewer can be configured again after a call to this method. Unlike
26      * {@link ISourceViewer#configure(SourceViewerConfiguration)} this method
27      * can be called more than once without interleaving calls to
28      * {@link ISourceViewer#configure(SourceViewerConfiguration)}.
29      */

30     void unconfigure();
31
32     /**
33      * Returns the visual annotation model of this viewer.
34      *
35      * @return the visual annotation model of this viewer
36      */

37     IAnnotationModel getVisualAnnotationModel();
38 }
39
Popular Tags