AlignmentPanel ap;\r
String fileLoadingError;\r
boolean colourBySequence = true;\r
+ boolean loadingFromArchive = false;\r
\r
public AppJMol(String file, String id,\r
SequenceI[] seq,\r
String loadStatus,\r
Rectangle bounds)\r
{\r
+ loadingFromArchive = true;\r
pdbentry = new PDBEntry();\r
pdbentry.setFile(file);\r
pdbentry.setId(id);\r
}\r
\r
\r
+ public void jmolHelp_actionPerformed(ActionEvent actionEvent)\r
+ {\r
+ try{\r
+ jalview.util.BrowserLauncher.openURL(\r
+ "http://jmol.sourceforge.net/docs/JmolUserGuide/");\r
+ }catch(Exception ex){}\r
+ }\r
+\r
+\r
//////////////////////////////////\r
///StructureListener\r
public String getPdbFile()\r
colourBySequence( (AlignmentPanel) source);\r
}\r
\r
+\r
//End StructureListener\r
////////////////////////////\r
\r
setChainMenuItems(chains);\r
\r
jmolpopup.updateComputedMenus();\r
- viewer.evalStringQuiet(\r
- "select backbone;restrict;cartoon;wireframe off;spacefill off");\r
\r
- colourBySequence(ap);\r
+ if(!loadingFromArchive)\r
+ {\r
+ viewer.evalStringQuiet(\r
+ "select backbone;restrict;cartoon;wireframe off;spacefill off");\r
+\r
+ colourBySequence(ap);\r
+ }\r
+\r
+ loadingFromArchive = false;\r
}\r
else\r
return;\r