KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > IBufferFactory


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.jdt.core;
12
13 /**
14  * A factory that creates <code>IBuffer</code>s for openables.
15  * <p>
16  * This interface may be implemented by clients.
17  * </p>
18  * @since 2.0
19  * @deprecated Use {@link WorkingCopyOwner} instead
20  */

21 public interface IBufferFactory {
22
23     /**
24      * Creates a buffer for the given owner.
25      * The new buffer will be initialized with the contents of the owner
26      * if and only if it was not already initialized by the factory (a buffer is uninitialized if
27      * its content is <code>null</code>).
28      *
29      * @param owner the owner of the buffer
30      * @return the newly created buffer
31      * @see IBuffer
32      */

33     IBuffer createBuffer(IOpenable owner);
34 }
35
36
Popular Tags