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 *******************************************************************************/
12 package net.sourceforge.phpdt.ui;
14 import org.eclipse.ui.IEditorInput;
16 import net.sourceforge.phpdt.core.ICompilationUnit;
19 * Extension interface for <code>IWorkingCopyManager</code>.
22 public interface IWorkingCopyManagerExtension {
25 * Sets the given working copy for the given editor input. If the given editor input
26 * is not connected to this working copy manager, this call has no effect. <p>
27 * This working copy manager does not assume the ownership of this working copy, i.e.,
28 * the given working copy is not automatically be freed when this manager is shut down.
30 * @param input the editor input
31 * @param workingCopy the working copy
33 void setWorkingCopy(IEditorInput input, ICompilationUnit workingCopy);
36 * Removes the working copy set for the given editor input. If there is no
37 * working copy set for this input or this input is not connected to this
38 * working copy manager, this call has no effect.
40 * @param input the editor input
42 void removeWorkingCopy(IEditorInput input);