Example usage for Java org.eclipse.jdt.core IBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addBufferChangedListener(IBufferChangedListener listener) Adds the given listener for changes to this buffer. |
void | append(char[] text) Appends the given character array to the contents of the buffer. |
void | append(String text) Appends the given string to the contents of the buffer. |
void | close() Closes the buffer. |
char | getChar(int position) Returns the character at the given position in this buffer. |
char[] | getCharacters() Returns the contents of this buffer as a character array, or null if the buffer has not been initialized. |
String | getContents() Returns the contents of this buffer as a String . |
int | getLength() Returns number of characters stored in this buffer. |
IOpenable | getOwner() Returns the Java openable element owning of this buffer. |
String | getText(int offset, int length) Returns the given range of text in this buffer. |
boolean | hasUnsavedChanges() Returns whether this buffer has been modified since it was opened or since it was last saved. |
void | removeBufferChangedListener(IBufferChangedListener listener) Removes the given listener from this buffer. |
void | replace(int position, int length, char[] text) Replaces the given range of characters in this buffer with the given text. |
void | replace(int position, int length, String text) Replaces the given range of characters in this buffer with the given text. |
void | save(IProgressMonitor progress, boolean force) Saves the contents of this buffer to its underlying resource. |
void | setContents(char[] contents) Sets the contents of this buffer to the given character array. |
void | setContents(String contents) Sets the contents of this buffer to the given String . |