Skip to content
Snippets Groups Projects
Commit 8a9f5ba5 authored by tcarver's avatar tcarver
Browse files

move processJnlpAttributes() to Splash

parent d42ad1aa
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment