viewBoxesMenuItem.setSelected(av.showBoxes);
viewTextMenuItem.setSelected(av.showText);
showUnconservedMenuItem.setSelected(av.showUnconserved);
+ showGroupConsensus.setSelected(av.showGroupConsensus);
+ showGroupConservation.setSelected(av.showGroupConservation);
setColourSelected(ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
{
if (!jalview.io.AppletFormatAdapter.isValidFormat(format, true))
{
- // JBPNote need to have a raise_gui flag here
- JOptionPane.showInternalMessageDialog(this, "Cannot save file "
+ warningMessage("Cannot save file "
+ fileName + " using format " + format,
- "Alignment output format not supported",
- JOptionPane.WARNING_MESSAGE);
+ "Alignment output format not supported");
saveAs_actionPerformed(null);
+ // JBPNote need to have a raise_gui flag here
return false;
}
return success;
}
+ private void warningMessage(String warning, String title)
+ {
+ if (new jalview.util.Platform().isHeadless())
+ {
+ System.err.println("Warning: "+title+"\nWarning: "+warning);
+
+ } else {
+ JOptionPane.showInternalMessageDialog(this,warning,title,JOptionPane.WARNING_MESSAGE);
+ }
+ return;
+ }
+
/**
* DOCUMENT ME!
*
viewport.sequenceColours = null;
viewport.setSelectionGroup(null);
PaintRefresher.Refresh(this, viewport.getSequenceSetId());
+ alignPanel.updateAnnotation();
alignPanel.paintAlignment(true);
}
viewport.setShowUnconserved(showUnconservedMenuItem.getState());
alignPanel.paintAlignment(true);
}
+
+ /* (non-Javadoc)
+ * @see jalview.jbgui.GAlignFrame#showGroupConsensus_actionPerformed(java.awt.event.ActionEvent)
+ */
+ protected void showGroupConsensus_actionPerformed(ActionEvent e)
+ {
+ viewport.setShowGroupConsensus(showGroupConsensus.getState());
+ alignPanel.updateAnnotation();
+
+ }
+
+ /* (non-Javadoc)
+ * @see jalview.jbgui.GAlignFrame#showGroupConservation_actionPerformed(java.awt.event.ActionEvent)
+ */
+ protected void showGroupConservation_actionPerformed(ActionEvent e)
+ {
+ viewport.setShowGroupConservation(showGroupConservation.getState());
+ alignPanel.updateAnnotation();
+ }
}
class PrintThread extends Thread