|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.eclipseexeditor.actions.FilterActionDelegate
Eclipse action for running a (Unix-like) command filter over the selected text. The filter is an external command which accepts standard input and prints standard output. This action applies a filter (after prompting the user for the filter or pipeline) to the selected text, then replaces that text with the output of the filter. If an exception occurs executing the filter, the selected text is not modified; a dialog displays the exception. This action runs in the standard Eclipse text editor.
Constructor Summary | |
FilterActionDelegate()
Default Constructor for FilterActionDelegate |
Method Summary | |
protected String |
filter(IProgressMonitor monitor,
String selectedText)
Prompt for a filter command with a dialog and run a filter on the selected text This command also saves the filter command for use next time this method is invoked. |
protected boolean |
isFilterable()
|
void |
run(IAction action)
|
void |
selectionChanged(IAction action,
ISelection selection)
|
void |
setActiveEditor(IAction action,
IEditorPart editor)
The EditorActionDelegate implementation of this IEditorActionDelegate
method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterActionDelegate()
Method Detail |
public void run(IAction action)
run
in interface IActionDelegate
protected String filter(IProgressMonitor monitor, String selectedText) throws FilterException
selectedText
-
FilterException
FilterCommandUI.readFilter(String)
protected boolean isFilterable()
public void setActiveEditor(IAction action, IEditorPart editor)
EditorActionDelegate
implementation of this IEditorActionDelegate
method. The matching editor has been activated. Notification guarantees that only editors that match the
type for which this action has been registered will be tracked.
setActiveEditor
in interface IEditorActionDelegate
action
- action proxy that represents this delegate in the desktopeditor
- the matching editor that has been activatedpublic void selectionChanged(IAction action, ISelection selection)
selectionChanged
in interface IActionDelegate
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |