if (argParser.getBoolean(Arg.QUIT))
{
- Jalview.getInstance().exit(
- "Exiting due to " + Arg.QUIT.argString() + " argument.",
+ Jalview.exit("Exiting due to " + Arg.QUIT.argString() + " argument.",
ExitCode.OK);
return true;
}
}
// colour alignment
- String colour = avm.getFromSubValArgOrPref(av, Arg.COLOUR, sv,
- null, "DEFAULT_COLOUR_PROT", "");
- this.colourAlignFrame(af, colour);
+ String colour = null;
+ if (avm.containsArg(Arg.COLOUR)
+ || !(format == FileFormat.Jalview))
+ {
+ colour = avm.getFromSubValArgOrPref(av, Arg.COLOUR, sv, null,
+ "DEFAULT_COLOUR_PROT", null);
+ }
+ if (colour != null)
+ {
+ this.colourAlignFrame(af, colour);
+ }
// Change alignment frame title
String title = avm.getFromSubValArgOrPref(av, Arg.TITLE, sv, null,
boolean showSSAnnotations, boolean showAnnotations,
boolean hideTFrows)
{
- Console.debug(
- "##### Setting showSSAnnotations to " + showSSAnnotations);
- Console.debug("##### Setting showAnnotations to " + showAnnotations);
- Console.debug("##### Setting hideTFrows to " + hideTFrows);
af.setAnnotationsVisibility(showSSAnnotations, true, false);
-
af.setAnnotationsVisibility(showAnnotations, false, true);
// show temperature factor annotations?
private void colourAlignFrame(AlignFrame af, ColourSchemeI cs)
{
- // Note that cs == null removes colour scheme from af
- af.changeColour(cs);
+ try {
+ SwingUtilities.invokeAndWait(new Runnable()
+ {
+ @Override
+ public void run()
+ {
+ // Note that cs == null removes colour scheme from af
+ af.changeColour(cs);
+ }
+ }); } catch (Exception x) {
+ Console.trace("Interrupted whilst waiting for colorAlignFrame action",x);
+
+ }
}
private ColourSchemeI getColourScheme(AlignFrame af)