org.opensolaris.opengrok.search.scope.editor
Class InternalEditor

java.lang.Object
  extended by org.opensolaris.opengrok.search.scope.Editor
      extended by org.opensolaris.opengrok.search.scope.editor.InternalEditor

public class InternalEditor
extends Editor

The InternaEditor is used to open a file in a JFrame.


Constructor Summary
InternalEditor()
          Creates a new instance of InternalEditor
 
Method Summary
 void displayFile(java.lang.String filename, java.lang.Integer lineno)
          Display a named file in the editor
 boolean isEditable()
          Is it possible to modify the command on this editor or not
 
Methods inherited from class org.opensolaris.opengrok.search.scope.Editor
getCommand, getName, setCommand, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalEditor

public InternalEditor()
Creates a new instance of InternalEditor

Method Detail

displayFile

public void displayFile(java.lang.String filename,
                        java.lang.Integer lineno)
                 throws java.lang.Exception
Display a named file in the editor

Specified by:
displayFile in class Editor
Parameters:
filename - The name of the file to display
lineno - The line number to position the caret at (null if unknown)
Throws:
java.lang.Exception - if an error occurs while starting the editor or reading the file

isEditable

public boolean isEditable()
Is it possible to modify the command on this editor or not

Specified by:
isEditable in class Editor
Returns:
true if the user is able to modify the command used to start this editor or not