*/
package jalview.appletgui;
-import java.io.*;
import java.net.*;
import java.util.*;
featuresFile = new jalview.io.FeaturesFile(file, type)
.parse(viewport.alignment,
alignPanel.seqPanel.seqCanvas.getFeatureRenderer().featureColours,
- featureLinks, true);
+ featureLinks, true, viewport.applet.getDefaultParameter("relaxedidmatch", false));
} catch (Exception ex)
{
ex.printStackTrace();
};
});
}
-
+ public boolean sortBy(AlignmentOrder alorder, String undoname)
+ {
+ SequenceI[] oldOrder = viewport.getAlignment()
+ .getSequencesArray();
+ if (viewport.applet.debug)
+ {
+ System.err.println("Sorting "+alorder.getOrder().size()+" in alignment '"+getTitle()+"'");
+ }
+ AlignmentSorter.sortBy(viewport.getAlignment(), alorder);
+ if (undoname!=null)
+ {
+ addHistoryItem(new OrderCommand(undoname, oldOrder, viewport.alignment));
+ }
+ alignPanel.paintAlignment(true);
+ return true;
+ }
protected void documentation_actionPerformed()
{
showURL("http://www.jalview.org/help.html", "HELP");
sortByTreeMenu.add(item);
}
}
-
+ public boolean sortBy(AlignmentOrder alorder, String undoname)
+ {
+ SequenceI[] oldOrder = viewport.getAlignment()
+ .getSequencesArray();
+ AlignmentSorter.sortBy(viewport.getAlignment(), alorder);
+ if (undoname!=null)
+ {
+ addHistoryItem(new OrderCommand(undoname, oldOrder, viewport.alignment));
+ }
+ alignPanel.paintAlignment(true);
+ return true;
+ }
/**
* Work out whether the whole set of sequences or just the selected set will
* be submitted for multiple alignment.
featuresFile = new FeaturesFile(file, type)
.parse(viewport.alignment.getDataset(),
alignPanel.seqPanel.seqCanvas.getFeatureRenderer().featureColours,
- false);
+ false,jalview.bin.Cache.getDefault("RELAXEDSEQIDMATCHING", false));
} catch (Exception ex)
{
ex.printStackTrace();