01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.core;
11:
12: /**
13: * A factory that creates <code>IBuffer</code>s for openables.
14: * <p>
15: * This interface may be implemented by clients.
16: * </p>
17: * @since 2.0
18: * @deprecated Use {@link WorkingCopyOwner} instead
19: */
20: public interface IBufferFactory {
21:
22: /**
23: * Creates a buffer for the given owner.
24: * The new buffer will be initialized with the contents of the owner
25: * if and only if it was not already initialized by the factory (a buffer is uninitialized if
26: * its content is <code>null</code>).
27: *
28: * @param owner the owner of the buffer
29: * @return the newly created buffer
30: * @see IBuffer
31: */
32: IBuffer createBuffer(IOpenable owner);
33: }
|