int index = view.getSearchType(); String regEx = view.getSearchValue(); FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), regEx, index); cmd.execute();
try { int index = view.getSearchType(); String regEx = view.getSearchValue(); Pattern p = RegExFactory.createCaseInsensitivePattern(regEx); FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), p, index); cmd.execute(); } catch (PatternSyntaxException pse) { UserNotifier un = HiViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Search", "The expression entered contains non " + "valid characters."); view.clearSearchValue(); }
    private void performSearch()    {        int index = view.getSearchType();        String regEx = view.getSearchValue();        FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), regEx,                            index);        cmd.execute();    }