X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAlignFrame.java;h=132417367797b071225e5d2c02bc9797a2b179d1;hb=8004878db16757b62ee2c35738506bc4509428cf;hp=5ee6c6264e8e46bc5a6529f367f2bf779623098a;hpb=7535505ef73485ad43881cb72a6c52cfb0033c63;p=jalview.git diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 5ee6c62..1324173 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -84,6 +84,13 @@ public class AlignFrame extends GAlignFrame else if(e.getActionCommand().equals("PFAM")) suffix = new String[]{"pfam"}; + if(e.getActionCommand().equals("XML DUMP")) + { + XMLStore store = new XMLStore(); + store.store(viewport); + return; + } + JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY") , suffix, e.getActionCommand()+" file"); chooser.setFileView(new JalviewFileView()); @@ -577,7 +584,6 @@ public class AlignFrame extends GAlignFrame public void font_actionPerformed(ActionEvent e) { - // JOptionPane op = new JOptionPane(); JInternalFrame frame = new JInternalFrame(); FontChooser fc = new FontChooser( alignPanel, frame ); frame.setContentPane(fc); @@ -637,6 +643,12 @@ public class AlignFrame extends GAlignFrame public void annotationPanelMenuItem_actionPerformed(ActionEvent e) { + if(annotationPanelMenuItem.isSelected() && viewport.getWrapAlignment()) + { + annotationPanelMenuItem.setSelected(false); + return; + } + viewport.setShowAnnotation( annotationPanelMenuItem.isSelected() ); alignPanel.setAnnotationVisible( annotationPanelMenuItem.isSelected() ); }