|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A text file buffer is a file buffer for text files. The contents of a text file buffer is given in the form of a document and an associated annotation model. Also, the text file buffer provides methods to manage the character encoding used to read and write the buffer's underlying text file.
Clients are not supposed to implement that interface. Instances of this type
are obtained from a ITextFileBufferManager
.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.core.filebuffers.IFileBuffer |
---|
commit, computeCommitRule, computeValidateStateRule, getContentType, getLocation, getModificationStamp, getStatus, isCommitable, isDirty, isShared, isStateValidated, isSynchronizationContextRequested, isSynchronized, releaseSynchronizationContext, requestSynchronizationContext, resetStateValidation, revert, setDirty, validateState |
Method Detail |
public IDocument getDocument()
public String getEncoding()
public void setEncoding(String encoding)
encoding
- the encodingpublic IAnnotationModel getAnnotationModel()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.