{\r
String choice = chooser.getSelectedFile().getPath();\r
jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
- String output = FormatAdapter.get(e.getActionCommand(), viewport.getAlignment().getSequences());\r
+ String output = FormatAdapter.formatSequences(e.getActionCommand(), viewport.getAlignment().getSequences());\r
try{\r
java.io.PrintWriter out = new java.io.PrintWriter( new java.io.FileWriter( choice ) );\r
out.println(output);\r
cap.formatForOutput();\r
frame.setContentPane(cap);\r
Desktop.addInternalFrame(frame, "Alignment output - "+e.getActionCommand(), 600, 500);\r
- cap.setText( FormatAdapter.get(e.getActionCommand(), viewport.getAlignment().getSequences()));\r
+ cap.setText( FormatAdapter.formatSequences(e.getActionCommand(), viewport.getAlignment().getSequences()));\r
}\r
\r
protected void htmlMenuItem_actionPerformed(ActionEvent e)\r
redoList.add(0, new Object[] {history[0], seq});\r
\r
seq = (SequenceI[]) history[1];\r
+ AlignmentAnnotation [] old = viewport.alignment.getAlignmentAnnotation();\r
viewport.setAlignment( new Alignment(seq) );\r
updateEditMenuBar();\r
+ for(int i=0; i<old.length; i++)\r
+ viewport.alignment.addAnnotation(old[i]);\r
viewport.updateConsensus();\r
+ viewport.updateConservation();\r
alignPanel.repaint();\r
}\r
\r
viewport.showSequenceFeatures(sequenceFeatures.isSelected());\r
if(viewport.showSequenceFeatures && !((Alignment)viewport.alignment).featuresAdded)\r
{\r
- AlignmentUtil.fetchSequenceFeatures( viewport.alignment , alignPanel);\r
+ SequenceFeatureFetcher sft = new SequenceFeatureFetcher(viewport.alignment, alignPanel);\r
((Alignment)viewport.alignment).featuresAdded = true;\r
}\r
alignPanel.repaint();\r