de.uni_paderborn.fujaba.texteditor
Interface TextEditor.Buffer
- Enclosing interface:
- TextEditor
- public static interface TextEditor.Buffer
represents a single open file/text in the text editor
- Version:
- $Revision: 1.4 $ $Date: 2005/02/14 14:28:14 $
- Author:
- $Author: cschneid $
setSyntaxHighlightingEnabled
public void setSyntaxHighlightingEnabled(boolean enabled)
- Parameters:
enabled - true to enable syntax highlighting
addLine
public void addLine(java.lang.String line)
- Parameters:
line - line of text to be added at the end of the buffer
setDirty
public void setDirty(boolean dirty)
- Parameters:
dirty - true to inform the editor that the text has not been saved, false vice
versa
setFilename
public void setFilename(java.lang.String filename)
- Parameters:
filename - new caption/filename of the buffer
getText
public java.lang.String getText()
- Returns:
- the content of this buffer
showLine
public void showLine(int lineNr)
- show a line in the editor (e.g. to highlight error).
- Parameters:
lineNr - which line to be shown