X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FJalview.java;h=87bacc15af3fbf4c4d54002eecc0b2b1ab7bdadb;hb=37a5dfc3c72a42689e90ad8a0e118e8855d9868b;hp=50faf67fad239e2113bf601ee2a2b509e6d2c94e;hpb=cd71fb9ef1a21678ad648ba13564b658b53ab834;p=jalview.git diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 50faf67..87bacc1 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -150,7 +150,7 @@ public class Jalview protocol = "File"; - if (file.indexOf("http:") > -1) + if (file.indexOf("http:") > -1 || file.indexOf("file:") >-1) { protocol = "URL"; } @@ -164,6 +164,28 @@ public class Jalview AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol, format); + data = aparser.getValue("colour"); + if(data!=null) + { + data.replaceAll("%20", " "); + + jalview.schemes.ColourSchemeI cs = + jalview.schemes.ColourSchemeProperty.getColour(af.getViewport(). + getAlignment(), data); + + if(cs == null) + { + jalview.schemes.UserColourScheme ucs + = new jalview.schemes.UserColourScheme("white"); + ucs.parseAppletParameter(data); + cs = ucs; + } + + System.out.println("colour is " + data); + af.changeColour( cs ); + } + + // Must maintain ability to use the groups flag data = aparser.getValue("groups"); if (data != null) @@ -228,9 +250,11 @@ public class Jalview } // We'll only open the default file if the desktop is visible. + // And the user ////////////////////// if ( !headless + && file==null && jalview.bin.Cache.getDefault("SHOW_STARTUP_FILE", true) ) {