1 11 package org.eclipse.compare; 12 13 import org.eclipse.compare.structuremergeviewer.SharedDocumentAdapterWrapper; 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.core.runtime.IProgressMonitor; 16 import org.eclipse.jface.text.IDocument; 17 import org.eclipse.ui.IEditorInput; 18 import org.eclipse.ui.texteditor.IDocumentProvider; 19 20 29 public interface ISharedDocumentAdapter { 30 31 43 IEditorInput getDocumentKey(Object element); 44 45 53 void connect(IDocumentProvider provider, IEditorInput documentKey) throws CoreException; 54 55 63 void disconnect(IDocumentProvider provider, IEditorInput documentKey); 64 65 71 void disconnect(Object element); 72 73 88 void flushDocument(IDocumentProvider provider, IEditorInput documentKey, IDocument document, boolean overwrite) throws CoreException; 89 90 } 91 | Popular Tags |