- StructureFile pdb = binding.getSsm().setMapping(
- binding.getSequence()[pos], binding.getChains()[pos],
- pe.getFile(), protocol, getProgressIndicator());
+ StructureFile pdb = null;
+ if (pe.hasStructureFile())
+ {
+ pdb = pe.getStructureFile();
+ Console.debug("(Re)Using StructureFile " + pdb.getId());
+ }
+ else
+ {
+ pdb = binding.getSsm().setMapping(binding.getSequence()[pos],
+ binding.getChains()[pos], pe.getFile(), protocol,
+ getProgressIndicator());
+ }