GPL license added
[jalview.git] / src / jalview / gui / Jalview2XML.java
index fa8e50b..89a7bfc 100755 (executable)
@@ -1,3 +1,22 @@
+/*\r
+* Jalview - A Sequence Alignment Editor and Viewer\r
+* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+*\r
+* This program is free software; you can redistribute it and/or\r
+* modify it under the terms of the GNU General Public License\r
+* as published by the Free Software Foundation; either version 2\r
+* of the License, or (at your option) any later version.\r
+*\r
+* This program is distributed in the hope that it will be useful,\r
+* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+* GNU General Public License for more details.\r
+*\r
+* You should have received a copy of the GNU General Public License\r
+* along with this program; if not, write to the Free Software\r
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+*/\r
+\r
 package jalview.gui;\r
 \r
 import java.io.*;\r
@@ -8,6 +27,7 @@ import jalview.binding.*;
 import jalview.schemes.*;\r
 import javax.swing.JInternalFrame;\r
 import java.net.URL;\r
+import jalview.io.SequenceFeatureFetcher;\r
 \r
 \r
 public class Jalview2XML\r
@@ -505,6 +525,8 @@ public class Jalview2XML
                                             view.getFontStyle(),\r
                                             view.getFontSize()));\r
     af.alignPanel.fontChanged();\r
+\r
+    af.sequenceFeatures_actionPerformed(null);\r
     af.viewport.setRenderGaps( view.getRenderGaps() );\r
 \r
     af.viewport.setWrapAlignment( view.getWrapAlignment() );\r
@@ -546,6 +568,11 @@ public class Jalview2XML
     af.changeColour(af.viewport.getGlobalColourScheme());\r
     af.viewport.setColourAppliesToAllGroups(true);\r
 \r
+    System.out.println(view.getShowSequenceFeatures());\r
+    if( view.getShowSequenceFeatures() );\r
+    {\r
+      SequenceFeatureFetcher sft = new SequenceFeatureFetcher(al, af.alignPanel);\r
+    }\r
 \r
     //LOAD TREES - THIS RELEASE ONLY ALLOWS 1 TREE\r
     if(object.getVamsasModel().getTreeCount()>0)\r