From f3af5a368a88540b50709bb30eaf85bd595c8a49 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 5 Nov 2019 16:46:11 +0000 Subject: [PATCH] JAL-3210 JAL-3330 use SequenceOntologyLite in JalviewJS --- src/jalview/bin/Jalview.java | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 521b674..7701229 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -401,26 +401,18 @@ public class Jalview } /* - * configure 'full' SO model if preferences say to, else use the default (SO - * Lite) + * configure 'full' SO model if preferences say to, else use the default (full SO) + * - as JS currently doesn't have OBO parsing, it must use 'Lite' version */ - if (Cache.getDefault("USE_FULL_SO", true)) + boolean soDefault = !Platform.isJS(); + if (Cache.getDefault("USE_FULL_SO", soDefault)) { SequenceOntologyFactory.setInstance(new SequenceOntology()); } if (!headless) { - desktop = new Desktop() -// { -// // BH testing -// @Override -// protected void processEvent(AWTEvent e) { -// System.out.println("Jalview.java " + e); -// super.processEvent(e); -// } -// } - ; + desktop = new Desktop(); desktop.setInBatchMode(true); // indicate we are starting up try -- 1.7.10.2