1 11 package org.eclipse.core.filebuffers; 12 13 14 import org.eclipse.core.filesystem.IFileStore; 15 16 import org.eclipse.core.runtime.CoreException; 17 import org.eclipse.core.runtime.IPath; 18 import org.eclipse.core.runtime.IProgressMonitor; 19 import org.eclipse.core.runtime.IStatus; 20 import org.eclipse.core.runtime.content.IContentType; 21 import org.eclipse.core.runtime.jobs.ISchedulingRule; 22 23 import org.eclipse.jface.text.IDocumentExtension4; 24 25 26 44 public interface IFileBuffer { 45 46 60 IPath getLocation(); 61 62 68 IFileStore getFileStore(); 69 70 75 boolean isShared(); 76 77 84 boolean isSynchronized(); 85 86 99 long getModificationStamp(); 100 101 109 boolean isCommitable(); 110 111 117 ISchedulingRule computeCommitRule(); 118 119 129 void commit(IProgressMonitor monitor, boolean overwrite) throws CoreException; 130 131 139 void revert(IProgressMonitor monitor) throws CoreException; 140 141 147 boolean isDirty(); 148 149 157 void setDirty(boolean isDirty); 158 159 165 ISchedulingRule computeValidateStateRule(); 166 167 176 void validateState(IProgressMonitor monitor, Object computationContext) throws CoreException; 177 178 184 boolean isStateValidated(); 185 186 190 void resetStateValidation(); 191 192 198 IStatus getStatus(); 199 200 206 void requestSynchronizationContext(); 207 208 214 void releaseSynchronizationContext(); 215 216 224 boolean isSynchronizationContextRequested(); 225 226 236 IContentType getContentType() throws CoreException; 237 } 238 | Popular Tags |