public interface ITextFileBuffer extends IFileBuffer
Clients are not supposed to implement that interface. Instances of this type
are obtained from a ITextFileBufferManager
.
Modifier and Type | Method and Description |
---|---|
IAnnotationModel |
getAnnotationModel()
Returns the annotation model of this text file buffer.
|
IDocument |
getDocument()
Returns the document of this text file buffer.
|
String |
getEncoding()
Returns the character encoding to be used for reading and writing the
buffer's underlying file.
|
void |
setEncoding(String encoding)
Sets the character encoding to be used for reading and writing the buffer's
underlying file.
|
commit, computeCommitRule, computeValidateStateRule, getContentType, getFileStore, getLocation, getModificationStamp, getStatus, isCommitable, isDirty, isShared, isStateValidated, isSynchronizationContextRequested, isSynchronized, releaseSynchronizationContext, requestSynchronizationContext, resetStateValidation, revert, setDirty, validateState
IDocument getDocument()
String getEncoding()
Note: The encoding used to write the file might differ from the encoding returned by this method if no encoding has been explicitly set and the content type of the file is derived from the content (e.g. an XML file).
void setEncoding(String encoding)
encoding
- the encodingIAnnotationModel getAnnotationModel()
null
if called when disconnected
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.