From 8a9f5ba50309fc6f3443dfff7b878e4b00ee5dcb Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Wed, 27 Nov 2013 10:57:34 +0000 Subject: [PATCH] move processJnlpAttributes() to Splash --- uk/ac/sanger/artemis/components/Splash.java | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/uk/ac/sanger/artemis/components/Splash.java b/uk/ac/sanger/artemis/components/Splash.java index ea1b989de..8daea10c5 100644 --- a/uk/ac/sanger/artemis/components/Splash.java +++ b/uk/ac/sanger/artemis/components/Splash.java @@ -349,6 +349,29 @@ abstract public class Splash extends JFrame icon); } + /** + * Web start properties need to begin with "javaws." or "jnlp. + */ + protected static void processJnlpAttributes() + { + // JNLP properties + final Properties properties = System.getProperties(); + for(String key : properties.stringPropertyNames()) + { + if( key.equals("jnlp.black_belt_mode") || + key.equals("jnlp.chado") || + key.equals("jnlp.offset") || + key.equals("jnlp.artemis.environment") || + key.equals("jnlp.sanger_options") || + key.equals("jnlp.read_only") || + key.startsWith("jnlp.bam") || + key.startsWith("jnlp.userplot") || + key.startsWith("jnlp.loguserplot") || + key.startsWith("jnlp.show_") ) + System.setProperty(key.substring(5), System.getProperty(key)); + } + } + protected void loadFile(final String fileName) { if(this instanceof ArtemisMain) -- GitLab