From: amwaterhouse Date: Fri, 24 Feb 2006 11:40:07 +0000 (+0000) Subject: Features now array X-Git-Tag: Root_VamJalview_2_07b+~102 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=aa7280580db6b414be9dbcf084ade7cda405eb3c;p=jalview.git Features now array --- diff --git a/src/jalview/analysis/SeqsetUtils.java b/src/jalview/analysis/SeqsetUtils.java index 40869c2..61f10b5 100755 --- a/src/jalview/analysis/SeqsetUtils.java +++ b/src/jalview/analysis/SeqsetUtils.java @@ -49,7 +49,7 @@ public class SeqsetUtils sqinfo.put("Name", seq.getName()); sqinfo.put("Start", new Integer(seq.getStart())); sqinfo.put("End", new Integer(seq.getEnd())); - sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : new Vector()); + sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : null); sqinfo.put("PdbId", (seq.getPDBId() != null) ? seq.getPDBId() : new Vector()); sqinfo.put("datasetSequence", (seq.getDatasetSequence() !=null) ? seq.getDatasetSequence() : new Sequence("THISISAPLACEHOLDER","")); @@ -71,7 +71,7 @@ public class SeqsetUtils String oldname = (String) sqinfo.get("Name"); Integer start = (Integer) sqinfo.get("Start"); Integer end = (Integer) sqinfo.get("End"); - java.util.Vector sfeatures = (java.util.Vector) sqinfo.get( + SequenceFeature [] sfeatures = (SequenceFeature[]) sqinfo.get( "SeqFeatures"); Vector pdbid = (Vector) sqinfo.get("PdbId"); Sequence seqds = (Sequence) sqinfo.get("datasetSequence"); @@ -94,7 +94,7 @@ public class SeqsetUtils sq.setEnd(end.intValue()); } - if ((sfeatures != null) && (sfeatures.size()>0)) + if ((sfeatures != null) && (sfeatures.length>0)) { sq.setSequenceFeatures(sfeatures); }