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 $

Method Summary
 void addLine(java.lang.String line)
           
 java.lang.String getText()
           
 void setDirty(boolean dirty)
           
 void setFilename(java.lang.String filename)
           
 void setSyntaxHighlightingEnabled(boolean enabled)
           
 void showLine(int lineNr)
          show a line in the editor (e.g. to highlight error).
 

Method Detail

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