blob: 9e930df5589f94d9095db0d3b1c27ca790d1f8f3 [file] [log] [blame]
package org.eclipse.jdt.core;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.*;
/**
* A factory that creates <code>IBuffer</code>s for openables.
* <p>
* This interface may be implemented by clients.
* </p>
* @since 2.0
*/
public interface IBufferFactory {
/**
* Creates a buffer for the given owner.
* The new buffer will be initialized with the contents of the owner
* iff it was not already initialized by the factory (a buffer is unitialized if
* its content is <code>null</code>).
*
* @param owner the owner of the buffer
* @see IBuffer
*/
IBuffer createBuffer(IOpenable owner);
}