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 net.sourceforge.phpdt.core.ICompilationUnit;
16 import org.eclipse.ui.IEditorInput;
19 * Extension interface for <code>IWorkingCopyManager</code>.
23 public interface IWorkingCopyManagerExtension {
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
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.
39 void setWorkingCopy(IEditorInput input, ICompilationUnit workingCopy);
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.
49 void removeWorkingCopy(IEditorInput input);