*/
public void loadAnnotationFrom(AlignFrame alf, String annotation)
{
- if (new AnnotationFile().readAnnotationFile(alf.getAlignViewport()
- .getAlignment(), annotation, AppletFormatAdapter.PASTE))
+ if (new AnnotationFile().annotateAlignmentView(alf.getAlignViewport(),
+ annotation, AppletFormatAdapter.PASTE))
{
alf.alignPanel.fontChanged();
alf.alignPanel.setScrollValues(0, 0);
if ((al != null) && (al.getHeight() > 0))
{
dbgMsg("Successfully loaded file.");
+ al.setDataset(null); // create dataset sequences
newAlignFrame = new AlignFrame(al, applet, file, embedded);
if (initialAlignFrame == null)
{
{
param = setProtocolState(param);
- if (new AnnotationFile().readAnnotationFile(
- newAlignFrame.viewport.getAlignment(), param, protocol))
+ if (new AnnotationFile().annotateAlignmentView(
+ newAlignFrame.viewport, param, protocol))
{
newAlignFrame.alignPanel.fontChanged();
newAlignFrame.alignPanel.setScrollValues(0, 0);
param, protocol);
JnetAnnotationMaker.add_annotation(predictions,
newAlignFrame.viewport.getAlignment(), 0, false); // false==do
+ SequenceI repseq = newAlignFrame.viewport.getAlignment()
+ .getSequenceAt(0);
+ newAlignFrame.viewport.getAlignment().setSeqrep(repseq);
+ ColumnSelection cs = new ColumnSelection();
+ cs.hideInsertionsFor(repseq);
+ newAlignFrame.viewport.setColumnSelection(cs);
// not
// add
// sequence