mk.fsgrep.util
Class ExternalEditor

java.lang.Object
  extended by mk.fsgrep.util.ExternalEditor

public abstract class ExternalEditor
extends java.lang.Object

A utility for launching an external editor on a match file.

Author:
Murali Krishnan

Field Summary
protected static ExternalEditor _instance
           
static java.util.regex.Pattern P_BACKSLASH
           
static java.util.regex.Pattern P_DOLLAR
           
static java.lang.String PERSISTENT_MAP_KEY
           
static java.util.regex.Pattern RE_FILE_NAME
           
static java.util.regex.Pattern RE_LINE_NUM
           
protected static ExternalEditor UNDEFINED
           
 
Method Summary
protected static java.lang.String[] createCmdArray(java.lang.String cmd)
           
protected  java.lang.String createCommand(java.lang.String filename, java.lang.String linenum)
           
static ExternalEditor getInstance()
           
protected  java.lang.String getSpec()
           
 boolean isDefined()
           
 void launch(java.lang.String filename, java.lang.String linenum, OutputDestination pStatus, OutputDestination pError)
           
protected static java.lang.String lookupDefinition()
           
static void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_instance

protected static ExternalEditor _instance

UNDEFINED

protected static ExternalEditor UNDEFINED

PERSISTENT_MAP_KEY

public static final java.lang.String PERSISTENT_MAP_KEY
See Also:
Constant Field Values

RE_FILE_NAME

public static final java.util.regex.Pattern RE_FILE_NAME

RE_LINE_NUM

public static final java.util.regex.Pattern RE_LINE_NUM

P_BACKSLASH

public static final java.util.regex.Pattern P_BACKSLASH

P_DOLLAR

public static final java.util.regex.Pattern P_DOLLAR
Method Detail

getInstance

public static ExternalEditor getInstance()

reset

public static void reset()

lookupDefinition

protected static java.lang.String lookupDefinition()

createCmdArray

protected static java.lang.String[] createCmdArray(java.lang.String cmd)

getSpec

protected java.lang.String getSpec()

createCommand

protected java.lang.String createCommand(java.lang.String filename,
                                         java.lang.String linenum)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

launch

public void launch(java.lang.String filename,
                   java.lang.String linenum,
                   OutputDestination pStatus,
                   OutputDestination pError)

isDefined

public boolean isDefined()


Copyright © 2009. All Rights Reserved.