KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.eclipse.jface.text.source;
12
13
14 /**
15  * Interface for objects interested in getting informed about annotation model
16  * changes. Changes are the addition or removal of annotations managed by the
17  * model. Clients may implement this interface.
18  *
19  * In order to provided backward compatibility for clients of
20  * <code>IAnnotationModelListener</code>, extension interfaces are used to
21  * provide a means of evolution. The following extension interfaces exist:
22  * <ul>
23  * <li>{@link org.eclipse.jface.text.source.IAnnotationModelListenerExtension}
24  * since version 2.0 replacing the change notification mechanisms.</li>
25  * </ul>
26  *
27  * @see org.eclipse.jface.text.source.IAnnotationModel
28  */

29 public interface IAnnotationModelListener {
30
31     /**
32      * Called if a model change occurred on the given model.<p>
33      * Replaced by {@link IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)}.
34      *
35      * @param model the changed annotation model
36      */

37     void modelChanged(IAnnotationModel model);
38 }
39
Popular Tags