getPasimapModel().calculate(pap);
if (!getPasimapModel().isCancelled())
{
+ // TODO: fix outputAlignment so it uses the compact form if no text report is available
+ outputAlignment.setVisible(!pap.isDiscardAlignments() && !pap.isQuiet());
xCombobox.setSelectedIndex(0);
yCombobox.setSelectedIndex(1);
zCombobox.setSelectedIndex(2);
{
this.quiet = quiet;
}
+
+ /**
+ * @return true if no textual alignment report was generated
+ */
+ public boolean isQuiet()
+ {
+ return quiet;
+ }
/**
* set this if you are only interested in final alignment scores
{
discardAlignments = discard;
}
+
+ /**
+ * @return true if no alignments were saved
+ * @return
+ */
+ public boolean isDiscardAlignments()
+ {
+ return discardAlignments;
+ }
+ /**
+ *
+ * @return true if the calculation was cancelled before completion
+ */
public boolean isCancelled()
{
return cancelled;
protected JMenuItem originalSeqData;
+ protected JMenuItem outputAlignment;
+
/**
* Constructor
*/
print_actionPerformed();
}
});
- JMenuItem outputAlignment = new JMenuItem();
+ outputAlignment = new JMenuItem();
outputAlignment
.setText(MessageManager.getString("label.output_alignment"));
outputAlignment.addActionListener(new ActionListener()