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.core.filebuffers; 12 13 14 import org.eclipse.core.runtime.IPath; 15 16 import org.eclipse.jface.text.source.IAnnotationModel; 17 18 19 /** 20 * Factory for text file buffer annotation models. Used by the text file buffer 21 * manager to create the annotation model for a new text file buffer. 22 * <p> 23 * This interface is the expected interface for extensions provided for the 24 * <code>"org.eclipse.core.filebuffers.annotationModelCreation"</code> 25 * extension point. 26 * 27 * @since 3.0 28 */ 29 public interface IAnnotationModelFactory { 30 31 /** 32 * Creates and returns a new annotation model. 33 * 34 * @param location the normalized location 35 * @return a new annotation model 36 */ 37 IAnnotationModel createAnnotationModel(IPath location); 38 } 39