{
// todo - record which pdbids were successfully imported.
StringBuilder errormsgs = new StringBuilder();
-
+
List<String> files = new ArrayList<>();
String pdbid = "";
try
String[] filesInViewer = getStructureFiles();
// TODO: replace with reference fetching/transfer code (validate PDBentry
// as a DBRef?)
-
+
for (int pi = 0; pi < getPdbCount(); pi++)
{
PDBEntry strucEntry = getPdbEntry(pi);
if (file == null)
{
pdbid = strucEntry.getId();
- try{
+ try
+ {
file = structureViewer.fetchPdbFile(strucEntry);
} catch (OutOfMemoryError oomerror)
{
ex.printStackTrace();
errormsgs.append("'").append(pdbid).append("'");
}
- if (file!=null)
+ if (file != null)
{
// success
files.add(file);