boolean caseSensitive = matchCaseCB.isSelected();
boolean regExpr = regexCB.isSelected();
boolean forwardSearch = forward;
boolean wholeWord = false;
SearchContext context = new SearchContext();
if (text.length() ==0)
return;
context.setSearchFor(text);
context.setMatchCase(matchCaseCB.isSelected());
context.setRegularExpression(regexCB.isSelected());
context.setSearchForward(forward);
context.setWholeWord(false);
boolean found = SearchEngine.find(jep, context);
if (!found)
JOptionPane.showMessageDialog(this.currentFrame, "Text not found");