refactory: added UI removed from core plugin.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ui / IWorkingCopyManagerExtension.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11
12 package net.sourceforge.phpdt.ui;
13
14 import net.sourceforge.phpdt.core.ICompilationUnit;
15
16 import org.eclipse.ui.IEditorInput;
17
18 /**
19  * Extension interface for <code>IWorkingCopyManager</code>.
20  * 
21  * @since 2.1
22  */
23 public interface IWorkingCopyManagerExtension {
24
25         /**
26          * Sets the given working copy for the given editor input. If the given
27          * editor input is not connected to this working copy manager, this call has
28          * no effect.
29          * <p>
30          * This working copy manager does not assume the ownership of this working
31          * copy, i.e., the given working copy is not automatically be freed when
32          * this manager is shut down.
33          * 
34          * @param input
35          *            the editor input
36          * @param workingCopy
37          *            the working copy
38          */
39         void setWorkingCopy(IEditorInput input, ICompilationUnit workingCopy);
40
41         /**
42          * Removes the working copy set for the given editor input. If there is no
43          * working copy set for this input or this input is not connected to this
44          * working copy manager, this call has no effect.
45          * 
46          * @param input
47          *            the editor input
48          */
49         void removeWorkingCopy(IEditorInput input);
50 }