|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.search.scope.Editor
public abstract class Editor
The Editor class is used as an interface to hide the details on how to display a file.
Constructor Summary | |
---|---|
Editor()
Creates a new instance of Editor |
Method Summary | |
---|---|
abstract void |
displayFile(java.lang.String filename,
java.lang.Integer lineno)
Display a named file in the editor |
java.lang.String |
getCommand()
Getter for property command. |
java.lang.String |
getName()
Getter for property name. |
abstract boolean |
isEditable()
Is it possible to modify the command on this editor or not |
void |
setCommand(java.lang.String command)
Setter for property command. |
void |
setName(java.lang.String name)
Setter for property name. |
java.lang.String |
toString()
Get the textual representation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Editor()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name)
name
- New value of property name.public java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
- New value of property command.public abstract boolean isEditable()
public abstract void displayFile(java.lang.String filename, java.lang.Integer lineno) throws java.lang.Exception
filename
- The name of the file to displaylineno
- The line number to position the caret at (null if unknown)
java.lang.Exception
- if an error occurs while starting the editor
or reading the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |