import java.util.HashMap;
import java.util.Map;
-import org.eclipse.core.runtime.CoreException;
-
-import org.eclipse.jface.text.Assert;
-
-import org.eclipse.ui.IEditorInput;
-
import net.sourceforge.phpdt.core.ICompilationUnit;
-
import net.sourceforge.phpdt.ui.IWorkingCopyManager;
import net.sourceforge.phpdt.ui.IWorkingCopyManagerExtension;
+import org.eclipse.core.runtime.CoreException;
+import net.sourceforge.phpeclipse.phpeditor.ICompilationUnitDocumentProvider;
+import org.eclipse.jface.text.Assert;
+import org.eclipse.ui.IEditorInput;
+
/**
* This working copy manager works together with a given compilation unit document provider and
*/
public class WorkingCopyManager implements IWorkingCopyManager, IWorkingCopyManagerExtension {
- private PHPDocumentProvider fDocumentProvider;
+ private ICompilationUnitDocumentProvider fDocumentProvider;
private Map fMap;
private boolean fIsShuttingDown;
*
* @param provider the provider
*/
- public WorkingCopyManager(PHPDocumentProvider provider) {
+ public WorkingCopyManager(ICompilationUnitDocumentProvider provider) {
Assert.isNotNull(provider);
fDocumentProvider= provider;
}