if (regEx == null || regEx.length() == 0) { UserNotifier un = HiViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Search", "No phrase to find."); return; }
    private void performSearch()    {        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 phrase contains non valid" +            					"characters.");            view.clearSearchValue();        }            }