* enable 'Superpose with' if more than one mapped structure
*/
viewSelectionMenu.setEnabled(false);
- if (getBinding().getStructureFiles().length > 1
+ if (getBinding().getMappedStructureCount() > 1
&& getBinding().getSequence().length > 1)
{
viewSelectionMenu.setEnabled(true);
}
forceClose = confirm == JvOptionPane.YES_OPTION;
}
+ }
+ if (binding != null)
+ {
binding.closeViewer(forceClose);
}
setAlignmentPanel(null);