From: gmungoc Date: Wed, 16 Sep 2015 09:26:54 +0000 (+0100) Subject: JAL-1859 revert to resolving full path to PDB file X-Git-Tag: Release_2_10_0~409 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=15335b83310784537f6c1b9c20d2c1ea2f57bcfc JAL-1859 revert to resolving full path to PDB file --- diff --git a/src/jalview/javascript/MouseOverStructureListener.java b/src/jalview/javascript/MouseOverStructureListener.java index 7f833e7..176c881 100644 --- a/src/jalview/javascript/MouseOverStructureListener.java +++ b/src/jalview/javascript/MouseOverStructureListener.java @@ -90,14 +90,13 @@ public class MouseOverStructureListener extends JSFunctionExec implements { 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. * @@ -105,6 +104,7 @@ public class MouseOverStructureListener extends JSFunctionExec implements */ public String resolveModelFile(String file) { + // TODO reuse JalviewLite.LoadingThread.addProtocol instead if (isValidUrl(file)) { return file;