1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation 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 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core;
14 * A factory that creates <code>IBuffer</code>s for openables.
16 * This interface may be implemented by clients.
21 public interface IBufferFactory {
24 * Creates a buffer for the given owner. The new buffer will be initialized
25 * with the contents of the owner if and only if it was not already
26 * initialized by the factory (a buffer is uninitialized if its content is
30 * the owner of the buffer
33 IBuffer createBuffer(IOpenable owner);