if (maxValue == null)
maxValue = 0;
Range searchRange = new Range(minValue.doubleValue(),
maxValue.doubleValue());
try {
SearchDefinition newSearch = new SearchDefinition(searchType,
searchRegex, searchRange);
chart.updateSearchDefinition(newSearch);
} catch (PatternSyntaxException pe) {
MZmineCore.getDesktop().displayErrorMessage(
"The regular expression's syntax is invalid: " + pe);