Skip to content

Commit fc53b3f

Browse files
committed
updating example to latest API
1 parent ed15de1 commit fc53b3f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

biojava3-structure-gui/src/main/java/demo/ShowStructureInJmol.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.biojava.bio.structure.Structure;
44
import org.biojava.bio.structure.align.gui.jmol.StructureAlignmentJmol;
5-
import org.biojava.bio.structure.align.util.AtomCache;
5+
import org.biojava3.structure.StructureIO;
66

77

88
/** Demo how to load and display a structure in Jmol
@@ -14,9 +14,7 @@ public class ShowStructureInJmol {
1414
public static void main(String[] args){
1515
try {
1616

17-
AtomCache cache = new AtomCache();
18-
19-
Structure struc = cache.getStructure("1aoi");
17+
Structure struc = StructureIO.getStructure("1aoi");
2018

2119
StructureAlignmentJmol jmolPanel = new StructureAlignmentJmol();
2220

0 commit comments

Comments
 (0)