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 20 21 36 public interface IFileBufferManager { 37 38 39 55 void connect(IPath location, IProgressMonitor monitor) throws CoreException; 56 57 73 void connect(IPath location, LocationKind locationKind, IProgressMonitor monitor) throws CoreException; 74 75 94 void connectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws CoreException; 95 96 112 void disconnect(IPath location, IProgressMonitor monitor) throws CoreException; 113 114 130 void disconnect(IPath location, LocationKind locationKind, IProgressMonitor monitor) throws CoreException; 131 132 151 void disconnectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws CoreException; 152 153 167 IFileBuffer getFileBuffer(IPath location); 168 169 183 IFileBuffer getFileBuffer(IPath location, LocationKind locationKind); 184 185 202 IFileBuffer getFileStoreFileBuffer(IFileStore fileStore); 203 204 210 void setSynchronizationContext(ISynchronizationContext context); 211 212 226 void requestSynchronizationContext(IPath location); 227 228 242 void releaseSynchronizationContext(IPath location); 243 244 252 void addFileBufferListener(IFileBufferListener listener); 253 254 261 void removeFileBufferListener(IFileBufferListener listener); 262 263 277 void validateState(IFileBuffer[] fileBuffers, IProgressMonitor monitor, Object computationContext) throws CoreException; 278 } 279 | Popular Tags |