X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FCache.java;h=7911cd5bab0728fb6976ab5b4d2a60c25c04a801;hb=73204ed7001df8ec4fc431934333bb3cfc6c90f3;hp=f9480abd3e8d54dbc63e86ab015df9318bdb22c2;hpb=776ce4a23c079b7a4baf9f49c10a2e3776842bf0;p=jalview.git diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index f9480ab..7911cd5 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -20,6 +20,8 @@ */ package jalview.bin; +import jalview.datamodel.DBRefSource; +import jalview.ws.dbsources.Pdb; import jalview.ws.dbsources.das.api.DasSourceRegistryI; import jalview.ws.dbsources.das.datamodel.DasSourceRegistry; import jalview.ws.sifts.SiftsSettings; @@ -226,6 +228,8 @@ public class Cache private final static String DEFAULT_FAIL_SAFE_PID_THRESHOLD = "30"; + private final static String DEFAULT_STRUCTURE_FORMAT = DBRefSource.PDB; + /** * Initialises the Jalview Application Log */ @@ -422,6 +426,8 @@ public class Cache System.out .println("Jalview Version: " + codeVersion + codeInstallation); + Pdb.setCurrentDefaultFomart(jalview.bin.Cache.getDefault( + "DEFAULT_STRUCTURE_FORMAT", DEFAULT_STRUCTURE_FORMAT)); // jnlpVersion will be null if we're using InstallAnywhere // Dont do this check if running in headless mode if (jnlpVersion == null