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);
this.setBounds(bounds);
colourBySequence = false;
seqColour.setSelected(false);
-
+ viewId = viewid;
// jalview.gui.Desktop.addInternalFrame(this, "Loading File",
// bounds.width,bounds.height);
}
}
}
+ String viewId=null;
+ public String getViewId()
+ {
+ if (viewId==null)
+ {
+ viewId=System.currentTimeMillis()+"."+this.hashCode();
+ }
+ return viewId;
+ }
}