1 11 package org.eclipse.core.filebuffers; 12 13 14 import org.eclipse.core.filesystem.IFileStore; 15 import org.eclipse.core.internal.filebuffers.FileBuffersPlugin; 16 17 import org.eclipse.core.runtime.IPath; 18 19 import org.eclipse.jface.text.IDocument; 20 import org.eclipse.jface.text.source.IAnnotationModel; 21 22 23 32 public interface ITextFileBufferManager extends IFileBufferManager { 33 34 38 ITextFileBufferManager DEFAULT= FileBuffersPlugin.getDefault().getFileBufferManager(); 39 40 54 ITextFileBuffer getTextFileBuffer(IPath location); 55 56 70 ITextFileBuffer getTextFileBuffer(IPath location, LocationKind locationKind); 71 72 89 ITextFileBuffer getFileStoreTextFileBuffer(IFileStore fileStore); 90 91 105 ITextFileBuffer getTextFileBuffer(IDocument document); 106 107 113 String getDefaultEncoding(); 114 115 129 IDocument createEmptyDocument(IPath location); 130 131 144 IDocument createEmptyDocument(IPath location, LocationKind locationKind); 145 146 159 IAnnotationModel createAnnotationModel(IPath location); 160 161 173 IAnnotationModel createAnnotationModel(IPath location, LocationKind locationKind); 174 175 195 boolean isTextFileLocation(IPath location); 196 217 boolean isTextFileLocation(IPath location, boolean strict); 218 } 219 | Popular Tags |