modifiable lock check
authorjprocter <Jim Procter>
Thu, 27 Sep 2007 13:42:13 +0000 (13:42 +0000)
committerjprocter <Jim Procter>
Thu, 27 Sep 2007 13:42:13 +0000 (13:42 +0000)
src/jalview/io/VamsasAppDatastore.java

index 7e0513d..6c35fa4 100644 (file)
@@ -1982,7 +1982,7 @@ public class VamsasAppDatastore
         Cache.log.warn("Ignoring " + annotation.getLinkCount()
                 + "links added to AlignmentAnnotation.");
       }
-      if (annotation.getModifiable() == null) // TODO: USE VAMSAS LIBRARY OBJECT
+      if (annotation.getModifiable() == null || annotation.getModifiable().length()==0) // TODO: USE VAMSAS LIBRARY OBJECT
                                               // LOCK METHODS)
       {
         jan.editable = true;
@@ -1992,7 +1992,7 @@ public class VamsasAppDatastore
         if (annotation.getGroup() != null
                 && annotation.getGroup().length() > 0)
         {
-          jan.graphGroup = Integer.parseInt(annotation.getGroup());
+          jan.graphGroup = Integer.parseInt(annotation.getGroup()); // TODO: group similarly named annotation together ?
         }
       } catch (Exception e)
       {