import jalview.bin.Cache;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.AlignmentView;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
{
foundArg = true;
String value = arg.getValue();
+
if (MessageManager.getString("label.alignment").equals(value))
{
- runBuildFor.add(alignment);
+ runBuildFor.add(viewport.getAlignmentView(false)
+ .getVisibleAlignment('-'));
}
else if (MessageManager.getString("label.groups_and_alignment")
.equals(value))
{
- runBuildFor.add(alignment);
- runBuildFor.addAll(viewport.getAlignment().getGroups());
+ AlignmentView av = viewport.getAlignmentView(true);
+ runBuildFor.add(av.getVisibleAlignment('-'));
+ runBuildFor.addAll(av.getVisibleGroups('-'));
}
else if (MessageManager.getString("label.groups").equals(value))
{
- runBuildFor.addAll(viewport.getAlignment().getGroups());
+ AlignmentView av = viewport.getAlignmentView(false);
+ runBuildFor.addAll(av.getVisibleGroups('-'));
}
else if (MessageManager.getString("label.selected_group")
.equals(value))
{
- runBuildFor.add(viewport.getSelectionGroup());
+ AlignmentView av = viewport.getAlignmentView(true);
+ runBuildFor.add(av.getVisibleAlignment('-'));
}
}
else if (MessageManager.getString("label.use_reference")
else
{
SequenceI[] sel = ((SequenceGroup) ac)
- .getSelectionAsNewSequences((AlignmentI) ac.getContext());
+ .getSelectionAsNewSequences((AlignmentI) ac.getContext(),
+ false);
for (SequenceI seq : sel)
{
copy.add(seq);