net.sf.eclipseexeditor.actions
Class QuoteXMLFilterActionDelegate

java.lang.Object
  extended bynet.sf.eclipseexeditor.actions.FilterActionDelegate
      extended bynet.sf.eclipseexeditor.actions.QuoteXMLFilterActionDelegate
All Implemented Interfaces:
IActionDelegate, IEditorActionDelegate

public class QuoteXMLFilterActionDelegate
extends FilterActionDelegate

Eclipse action for replacing XML special characters in the selected region with escaped characters. This action runs in the standard Eclipse text editor.

Author:
David Biesack David.Biesack@mindspring.com

Constructor Summary
QuoteXMLFilterActionDelegate()
          Default Constructor for QuoteXMLFilterActionDelegate
 
Method Summary
protected  String filter(IProgressMonitor monitor, String selectedText)
          Filter the selectedText by quoting XML special characters, replacing them with the corresponding XML entities.
protected  boolean isFilterable()
           
 
Methods inherited from class net.sf.eclipseexeditor.actions.FilterActionDelegate
run, selectionChanged, setActiveEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteXMLFilterActionDelegate

public QuoteXMLFilterActionDelegate()
Default Constructor for QuoteXMLFilterActionDelegate

Method Detail

isFilterable

protected boolean isFilterable()
Overrides:
isFilterable in class FilterActionDelegate

filter

protected String filter(IProgressMonitor monitor,
                        String selectedText)
Filter the selectedText by quoting XML special characters, replacing them with the corresponding XML entities.

Overrides:
filter in class FilterActionDelegate
Parameters:
selectedText - the text to filter
Returns:
the input text with special XML characters replaced with XML entities.
See Also:
FilterCommandUI.readFilter(String)