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
9 * Christopher Lenz - initial API and implementation
11 * $Id: AnnotationAdapter.java,v 1.2 2006-10-21 23:14:13 pombredanne Exp $
14 package net.sourceforge.phpeclipse.xml.ui.internal.text;
16 import org.eclipse.jface.text.Position;
17 import org.eclipse.jface.text.reconciler.IReconcileResult;
18 import org.eclipse.jface.text.source.Annotation;
21 * Adapts a temporary or persistent annotation to a reconcile result.
23 public abstract class AnnotationAdapter implements IReconcileResult {
26 * Creates and returns the annotation adapted by this adapter.
28 * @return an annotation (can be temporary or persistent)
30 public abstract Annotation createAnnotation();
33 * The position of the annotation adapted by this adapter.
35 * @return the position
37 public abstract Position getPosition();