- annotations.setSelectedIndex(lastChooser
- .getAnnotations().getSelectedIndex());
- threshold.setSelectedIndex(lastChooser
- .getThreshold().getSelectedIndex());
- actionOption = lastChooser
- .getActionOption();
- percentThreshold.setSelected(lastChooser.percentThreshold
- .isSelected());
+ annotations.setSelectedIndex(
+ lastChooser.getAnnotations().getSelectedIndex());
+ threshold.setSelectedIndex(
+ lastChooser.getThreshold().getSelectedIndex());
+ actionOption = lastChooser.getActionOption();
+ percentThreshold
+ .setSelected(lastChooser.percentThreshold.isSelected());
+ }
+ if (selectedAnnotation != null)
+ {
+ try
+ {
+ setCurrentAnnotation(selectedAnnotation);
+ annotations.setSelectedItem(
+ getAnnotationMenuLabel(selectedAnnotation));
+ } catch (Exception x)
+ {
+ Console.error("Couldn't select annotation in column chooser", x);
+ }