1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 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 import org.eclipse.jface.text.IDocument; 14 15 /** 16 * Factory for text file buffer documents. Used by the text file buffer manager 17 * to create the document for a new text file buffer. 18 * <p> 19 * This interface is the expected interface of extensions provided for the 20 * <code>"org.eclipse.core.filebuffers.documentCreation"</code> extension 21 * point.</p> 22 * 23 * @since 3.0 24 * @deprecated As of 3.2 the <code>"org.eclipse.core.filebuffers.documentCreation"</code> 25 * has been deprecated. See the extension point documentation for more details. 26 */ 27 public interface IDocumentFactory { 28 29 /** 30 * Creates and returns a new, empty document. 31 * 32 * @return a new, empty document 33 */ 34 IDocument createDocument(); 35 } 36