JAL-1764 save Chimera/Jmol state as separate entries in project Jar
[jalview.git] / src / jalview / datamodel / StructureViewerModel.java
index 098372b..c23e320 100644 (file)
@@ -27,6 +27,8 @@ public class StructureViewerModel
 
   private String stateData = "";
 
+  private String viewId;
+
   private Map<File, StructureData> fileData = new HashMap<File, StructureData>();
 
   public class StructureData
@@ -36,7 +38,6 @@ public class StructureViewerModel
     private String pdbId;
 
     private List<SequenceI> seqList;
-
     // TODO and possibly a list of chains?
 
     /**
@@ -85,7 +86,7 @@ public class StructureViewerModel
 
   public StructureViewerModel(int x, int y, int width, int height,
           boolean alignWithPanel, boolean colourWithAlignPanel,
-          boolean colourByViewer)
+          boolean colourByViewer, String viewId)
   {
     this.x = x;
     this.y = y;
@@ -94,6 +95,7 @@ public class StructureViewerModel
     this.alignWithPanel = alignWithPanel;
     this.colourWithAlignPanel = colourWithAlignPanel;
     this.colourByViewer = colourByViewer;
+    this.viewId = viewId;
   }
 
   public int getX()
@@ -186,4 +188,8 @@ public class StructureViewerModel
     this.fileData = fileData;
   }
 
+  public String getViewId()
+  {
+    return this.viewId;
+  }
 }