} catch (Exception ex)
{
al = null;
- jalview.bin.Cache.log.debug("Exception during translation.", ex);
+ jalview.bin.Cache.log.error("Exception during translation. Please report this !", ex);
+ JOptionPane
+ .showMessageDialog(
+ Desktop.desktop,
+ "Unfortunately, something went wrong when translating your sequences.\nPlease take a look in the Jalview java console\nand submit a bug report including the stacktrace.",
+ "Implementation error: Translation Failed", JOptionPane.ERROR_MESSAGE);
+ return;
}
if (al == null)
{
alignPanel.paintAlignment(true);
}
}
-
+ public void clearAlignmentSeqRep()
+ {
+ if (viewport.getAlignment().hasSeqrep()) {
+ viewport.getAlignment().setSeqrep(null);
+ PaintRefresher.Refresh(this, viewport.getSequenceSetId());
+ alignPanel.updateAnnotation();
+ alignPanel.paintAlignment(true);
+ }
+ }
/**
* make the given alignmentPanel the currently selected tab
*