01: /*******************************************************************************
02: * Copyright (c) 2000, 2003 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.jdt.internal.ui.examples.jspeditor;
11:
12: import org.eclipse.jface.text.Position;
13: import org.eclipse.jface.text.reconciler.IReconcileResult;
14: import org.eclipse.jface.text.source.Annotation;
15:
16: /**
17: * Adapts a temporary or persitent annotation to a reconcile result.
18: *
19: * @since 3.0
20: */
21: public abstract class AnnotationAdapter implements IReconcileResult {
22:
23: /**
24: * Creates and returns the annotation adapted by this adapter.
25: *
26: * @return an annotation (can be temporary or persistent)
27: */
28: public abstract Annotation createAnnotation();
29:
30: /**
31: * The position of the annotation adapted by this adapter.
32: *
33: * @return the position
34: */
35: public abstract Position getPosition();
36:
37: }
|