1 11 package org.eclipse.ui.texteditor; 12 13 import org.eclipse.jface.text.IDocument; 14 import org.eclipse.jface.text.source.IAnnotationModel; 15 16 import org.eclipse.core.runtime.CoreException; 17 import org.eclipse.core.runtime.IProgressMonitor; 18 19 65 public interface IDocumentProvider { 66 67 80 void connect(Object element) throws CoreException; 81 82 93 void disconnect(Object element); 94 95 102 IDocument getDocument(Object element); 103 104 112 void resetDocument(Object element) throws CoreException; 113 114 124 void saveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite) throws CoreException; 125 126 132 long getModificationStamp(Object element); 133 134 141 long getSynchronizationStamp(Object element); 142 143 149 boolean isDeleted(Object element); 150 151 158 boolean mustSaveDocument(Object element); 159 160 168 boolean canSaveDocument(Object element); 169 170 176 IAnnotationModel getAnnotationModel(Object element); 177 178 192 void aboutToChange(Object element); 193 194 204 void changed(Object element); 205 206 212 void addElementStateListener(IElementStateListener listener); 213 214 220 void removeElementStateListener(IElementStateListener listener); 221 } 222 | Popular Tags |