X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Futil%2FPlatform.java;h=c06c75552776e4e8a12a67134d16650255656281;hb=733475a7d1f0fddcb059dd45cd8ef8cf0acd8ecc;hp=fea40c3bd7281186532e7ff2c70bdd4c13579f44;hpb=9c3ea1623729c2f5d8d8e556b31b652690e6ea50;p=jalview.git diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index fea40c3..c06c755 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -692,6 +692,11 @@ public class Platform } + public static Regex newRegex(String regex) + { + return newRegex(regex, null); + } + public static Regex newRegex(String searchString, String replaceString) { ensureRegex(); @@ -818,6 +823,15 @@ public class Platform } - + public static URL getDocumentBase() + { + return (isJS ? jsutil.getDocumentBase() : null); + } + + public static URL getCodeBase() + { + return (isJS ? jsutil.getCodeBase() : null); + } + }