X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAppJmol.java;h=32fc85f7700ea8277e8570322f366a6d12de6af6;hb=50ad147ba0eb763fae29b364c80632abc1155e9c;hp=3a87f8c656d6117edffc52c4937cfe5bc76f1524;hpb=506d60f0e188723ddc91c26824b41ac7034df3fe;p=jalview.git diff --git a/src/jalview/gui/AppJmol.java b/src/jalview/gui/AppJmol.java index 3a87f8c..32fc85f 100644 --- a/src/jalview/gui/AppJmol.java +++ b/src/jalview/gui/AppJmol.java @@ -74,6 +74,11 @@ public class AppJmol extends GStructureViewer implements StructureListener, public AppJmol(String file, String id, SequenceI[] seq, AlignmentPanel ap, String loadStatus, Rectangle bounds) { + this(file, id, seq, ap, loadStatus, bounds, null); + } + public AppJmol(String file, String id, SequenceI[] seq, + AlignmentPanel ap, String loadStatus, Rectangle bounds, String viewid) + { loadingFromArchive = true; pdbentry = new PDBEntry(); pdbentry.setFile(file); @@ -84,7 +89,7 @@ public class AppJmol extends GStructureViewer implements StructureListener, this.setBounds(bounds); colourBySequence = false; seqColour.setSelected(false); - + viewId = viewid; // jalview.gui.Desktop.addInternalFrame(this, "Loading File", // bounds.width,bounds.height); @@ -968,5 +973,14 @@ public class AppJmol extends GStructureViewer implements StructureListener, } } } + String viewId=null; + public String getViewId() + { + if (viewId==null) + { + viewId=System.currentTimeMillis()+"."+this.hashCode(); + } + return viewId; + } }