action.PrintAction.image=file:resources/icons/print.png
action.PrintAction.tooltip=Print view
-action.CloseAction.text=&Close@Command+W
+action.CloseAction.text=&Close@Ctrl+W
action.CloseAction.image=file:resources/icons/close.png
action.CloseAction.tooltip=Close current file
public void resetView() {
Tool.OperatingMode.action.setChecked(false);
resetViewSelectionToolbar(painters.get("Combined"));
+
// clear metadata
comboLabel.deselectAll();
comboLabel.setEnabled(false);
clearTermSynonymTable();
collectionId.setText("");
comment.setText("");
- //if (curatorCombo.getText() != null) {
- //curatorCombo.setText(null);
- curatorCombo.deselectAll();
- //}
- //if (speciesCombo.getText() != null) {
- speciesCombo.deselectAll();
- //speciesCombo.setText(null);
- //}
+ curatorCombo.deselectAll();
+ speciesCombo.deselectAll();
+
// clear segment data (term labels, layers, image coords)
if (view.getContext() != null) {
- //ArrayList<SegmentationMask> segMasks = view.getContext().getSegmentationMasks();
- //if (segMasks.size() > 0)
- // segMasks.clear();
this.getContext().nullifySegments();
this.getContext().nullifySegments(); // TODO: why twice?
this.setContext(null);