/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jface.text.source; /** * An annotation access provides access to information that is not available via the API of * {@link org.eclipse.jface.text.source.Annotation}. With version 3.0 all this information is now * available from the annotation itself. *

* * In order to provide backward compatibility for clients of IAnnotationAccess, * extension interfaces are used as a means of evolution. The following extension interfaces exist: *

* *

* Clients usually implement this interface and its extension interfaces. *

* * @see org.eclipse.jface.text.source.IAnnotationAccessExtension * @see org.eclipse.jface.text.source.Annotation * @since 2.1 */ public interface IAnnotationAccess { /** * Returns the type of the given annotation. * * @param annotation the annotation * @return the type of the given annotation or null if it has none. * @deprecated use Annotation.getType() */ @Deprecated Object getType(Annotation annotation); /** * Returns whether the given annotation spans multiple lines. * * @param annotation the annotation * @return true if the annotation spans multiple lines, * false otherwise * * @deprecated assumed to always return true */ @Deprecated boolean isMultiLine(Annotation annotation); /** * Returns whether the given annotation is temporary rather than persistent. * * @param annotation the annotation * @return true if the annotation is temporary, * false otherwise * @deprecated use Annotation.isPersistent() */ @Deprecated boolean isTemporary(Annotation annotation); }