Save featureGroup
authoramwaterhouse <Andrew Waterhouse>
Thu, 16 Feb 2006 15:48:05 +0000 (15:48 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 16 Feb 2006 15:48:05 +0000 (15:48 +0000)
src/jalview/gui/Jalview2XML.java

index 993b402..e387967 100755 (executable)
@@ -207,6 +207,7 @@ public class Jalview2XML
                 features.setDescription(sf.getDescription());\r
                 features.setStatus(sf.getStatus());\r
                 features.setType(sf.getType());\r
+                features.setFeatureGroup(sf.getFeatureGroup());\r
                 jseq.addFeatures(features);\r
               }\r
             }\r
@@ -682,6 +683,7 @@ public class Jalview2XML
                   = new jalview.datamodel.SequenceFeature(features[f].getType(),\r
                   features[f].getDescription(), features[f].getStatus(),\r
                   features[f].getBegin(), features[f].getEnd());\r
+              sf.setFeatureGroup(features[f].getFeatureGroup());\r
               al.getSequenceAt(i).getDatasetSequence().addSequenceFeature(sf);\r
             }\r
           }\r
@@ -879,9 +881,8 @@ public class Jalview2XML
 \r
         if (view.getShowSequenceFeatures())\r
         {\r
-           af.featureSettings.setEnabled(true);\r
            af.viewport.showSequenceFeatures = true;\r
-           af.sequenceFeatures.setSelected(true);\r
+           af.showSeqFeatures.setSelected(true);\r
         }\r
 \r
         if(jms.getFeatureSettings()!=null)\r