}
String searchExpression = findCombo.getSelectedItem().toString();
String replacement = replaceCombo.getSelectedItem().toString();
SearchContext context = new SearchContext();
context.setSearchFor(searchExpression);
context.setReplaceWith(replacement);
context.setRegularExpression(false);
context.setMatchCase(caseCheck.isSelected());
context.setSearchForward(forwardButton.isSelected());
context.setWholeWord(wholeWordCheck.isSelected());
return context;
}