{
for (int i = 0; i < modelSet.length; i++)
{
- // ? leave file names 'as is' to match StructureMapping.pdbfile
- // modelSet[i] = resolveModelFile(modelSet[i]);
+ modelSet[i] = resolveModelFile(modelSet[i]);
}
}
}
/**
- * Returns the first out of file, file prefixed by document base, or file
+ * Returns the first out of: file, file prefixed by document base, or file
* prefixed by codebase which can be resolved to a valid URL. If none can,
* returns the input parameter value.
*
*/
public String resolveModelFile(String file)
{
+ // TODO reuse JalviewLite.LoadingThread.addProtocol instead
if (isValidUrl(file))
{
return file;