private void doFilter(String filter)
{
if (HermesBrowser.getBrowser().getDocumentPane().getActiveDocument() instanceof FilterableAction)
{
FilterableAction filterableAction = (FilterableAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
try
{
filterableAction.setSelector(filter);
}
catch (Throwable e)
{
HermesBrowser.getBrowser().showErrorDialog("Invalid selector: ", e);
}