intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / src / net / sourceforge / phpeclipse / css / ui / internal / text / AnnotationAdapter.java
1 /*
2  * Copyright (c) 2003-2004 Christopher Lenz and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API and implementation
10  * 
11  * $Id: AnnotationAdapter.java,v 1.1 2004-09-02 18:11:48 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.css.ui.internal.text;
15
16 import org.eclipse.jface.text.Position;
17 import org.eclipse.jface.text.reconciler.IReconcileResult;
18 import org.eclipse.jface.text.source.Annotation;
19
20 /**
21  * Adapts a temporary or persistent annotation to a reconcile result.
22  */
23 public abstract class AnnotationAdapter implements IReconcileResult {
24
25         /**
26          * Creates and returns the annotation adapted by this adapter.
27          * 
28          * @return an annotation (can be temporary or persistent)
29          */
30         public abstract Annotation createAnnotation();
31         
32         /**
33          * The position of the annotation adapted by this adapter.
34          * 
35          * @return the position
36          */
37         public abstract Position getPosition();
38
39 }