*/
msa = viewport.getAlignmentView(true);
}
+ else if (viewport.getSelectionGroup() != null
+ && viewport.getSelectionGroup().getSize() == 1)
+ {
+ int option = JOptionPane
+ .showConfirmDialog(
+this,
+ "More than one sequece group selection is required for this Job, click \n'Cancel' to edit your selection or 'Ok' to submit the entire sequence.",
+ "Invalid selection",
+ JOptionPane.OK_CANCEL_OPTION);
+ if (option == JOptionPane.OK_OPTION)
+ {
+ msa = viewport.getAlignmentView(false);
+ }
+
+ }
else
{
/*
JOptionPane
.showMessageDialog(
alignFrame,
- "A minimum of two sequences with at least three non-gap character \nis required to perform this operation",
+ "All selected sequence for this job must have a minimum of \nthree non-gap character to perform this operation",
"Invalid selection", JOptionPane.INFORMATION_MESSAGE);
return false;
{
AlignmentView msa = alignFrame.gatherSequencesForAlignment();
- if (isValidAlignment(msa))
+ if (msa != null && isValidAlignment(msa))
{
new MsaWSClient(service, alignFrame.getTitle(), msa, withGaps,
true, alignFrame.getViewport().getAlignment()
{
AlignmentView msa = alignFrame.gatherSequencesForAlignment();
- if (isValidAlignment(msa))
+ if (msa != null && isValidAlignment(msa))
{
new MsaWSClient(service, null, null, true, alignFrame
.getTitle(), msa, withGaps, true, alignFrame
AlignmentView msa = alignFrame
.gatherSequencesForAlignment();
- if (isValidAlignment(msa))
+ if (msa != null && isValidAlignment(msa))
{
new MsaWSClient(service, preset, alignFrame.getTitle(),
msa, false, true, alignFrame.getViewport()