/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
{
title = "Retrieved from " + database.getSelectedItem();
}
-
+ SequenceFeature[] sfs=null;
+ for (Enumeration sq=al.getSequences().elements(); sq.hasMoreElements();)
+ {
+ if ((sfs=((SequenceI)sq.nextElement()).getDatasetSequence().getSequenceFeatures())!=null)
+ {
+ if (sfs.length>0)
+ {
+ af.setShowSeqFeatures(true);
+ break;
+ }
+ }
+
+ }
Desktop.addInternalFrame(af, title, AlignFrame.DEFAULT_WIDTH,
AlignFrame.DEFAULT_HEIGHT);