DefaultFileStatus Class
- public class DefaultFileStatus
extends Object
implements IFileStatus
A simple object for setting line and column information displayed in the status bar.
-
Hierarchy
-
Object
DefaultFileStatus
-
All Implemented Interfaces
-
IFileStatus
public int |
-
getColumn ()
- Returns the current column number as displayed in the status bar.
|
public int |
-
getLine ()
- Returns the current line number as displayed in the status bar.
|
public void |
-
setLineAndColumn (int line, int column)
- Sets the line and column information displayed in the status bar.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFileStatus
public DefaultFileStatus(IDocument
doc)
- Creates the IFileStatus object for the specified document.
getColumn() Method
public int getColumn()
Returns the current column number as displayed in the status bar. It is almost always
preferable to call ISourceView.getCaretPosition
, and then convert that offset to line and column
information via the ISourceModel
interface, since the status bar UI is not necessarily in sync with the
actual caret position within the document.
Returns
- The current column number as displayed in the status bar.
getLine() Method
public int getLine()
Returns the current line number as displayed in the status bar. It is almost always
preferable to call ISourceView.getCaretPosition
, and then convert that offset to line and column
information via the ISourceModel
interface, since the status bar UI is not necessarily in sync with the
actual caret position within the document.
Returns
- The current line number as displayed in the status bar.
setLineAndColumn(int, int) Method
public void setLineAndColumn(int line,
int column)
Sets the line and column information displayed in the status bar. It is never
necessary to call this method directly if the DefaultSourceDocument and built-in
ISourceView implementations are used.