|
Eclipse Platform Release 3.0 |
||||||||||
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.
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, getLocation, getModificationStamp, getStatus, isDirty, isShared, isStateValidated, isSynchronized, resetStateValidation, revert, validateState |
Method Detail |
public IDocument getDocument()
public String getEncoding()
public void setEncoding(String encoding)
encoding
- the encodingpublic IAnnotationModel getAnnotationModel()
|
Eclipse Platform Release 3.0 |
||||||||||
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, 2004. All rights reserved.