TEMPFAC.setOptions(Opt.STRING, Opt.LINKED);
TEMPFAC_LABEL.setOptions(Opt.STRING, Opt.LINKED);
TEMPFAC_DESC.setOptions(Opt.STRING, Opt.LINKED);
- TEMPFAC_SHADING.setOptions(Opt.STRING, Opt.LINKED);
+ TEMPFAC_SHADING.setOptions(Opt.BOOLEAN, Opt.LINKED);
TITLE.setOptions(Opt.STRING, Opt.LINKED);
PAEMATRIX.setOptions(Opt.STRING, Opt.LINKED, Opt.MULTI);
NOSTRUCTURE.setOptions(Opt.UNARY, Opt.LINKED);
Console.error("Could not open any files in headless mode");
System.exit(1);
}
- // TOREMOVE COMMENT
- // @Ben assumed this was the GUI version of above, rather then the
- // first==false state
else
{
Console.warn("No more files to open");
}
}
}
- String shading = ArgParser.getValue(m, Arg.TEMPFAC_SHADING);
- if (shading != null)
+
+ boolean doShading = ArgParser.getBoolean(m, Arg.TEMPFAC_SHADING);
+ if (doShading)
{
- Console.debug(
- "Annotation colour scheme : " + shading + " (ignored value)");
AlignFrame af = afMap.get(id);
for (AlignmentAnnotation aa : af.alignPanel.getAlignment()
.findAnnotation(PDBChain.class.getName().toString()))
af.changeColour(acg);
Console.info("Changed colour " + acg.toString());
}
-
}
}