chart.setItemLabels(labeledItems.isSelected());
}
if (command.equals("SEARCH")) {
SearchDefinitionType searchType = (SearchDefinitionType) comboSearchDataType
.getSelectedItem();
String searchRegex = txtSearchField.getText();
Number minValue = ((Number) minSearchField.getValue());
if (minValue == null)
minValue = 0;
Number maxValue = ((Number) maxSearchField.getValue());
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);
}
return;
}
if (command.equals("SEARCH_DATA_TYPE")) {
SearchDefinitionType searchType = (SearchDefinitionType) comboSearchDataType
.getSelectedItem();
switch (searchType) {
case MASS :