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

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

public class ExternalEditor
extends Editor


Constructor Summary
ExternalEditor()
          Creates a new instance of ExternalEditor
 
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

ExternalEditor

public ExternalEditor()
Creates a new instance of ExternalEditor

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