net.sf.eclipseexeditor
Class FilterCommandUI

java.lang.Object
  extended bynet.sf.eclipseexeditor.FilterCommandUI

public class FilterCommandUI
extends Object

Eclipse user interface support for running filters over regions of text.

Author:
David.Biesack@mindspring.com

Constructor Summary
FilterCommandUI()
          Construct a new instance of the FilterUI class
 
Method Summary
static String readFilter(String lastFilter)
          Open a dialog to read the command filter to execute on the selected text.
static void reportFilterException(Exception ex, String filterCommand)
          Report an excepetion running a filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterCommandUI

public FilterCommandUI()
Construct a new instance of the FilterUI class

Method Detail

readFilter

public static String readFilter(String lastFilter)
Open a dialog to read the command filter to execute on the selected text. The default is "cat" which unfortunately does not always exist (i.e. on Windows, unless the user has some of the cygwin or gnu text utils installed)

Parameters:
lastFilter - the last filter the user used.
Returns:
the command to run as a filter

reportFilterException

public static void reportFilterException(Exception ex,
                                         String filterCommand)
Report an excepetion running a filter

Parameters:
ex - the exception that was caught
filterCommand - the command string associated with the exception