String pdbFilename = selectedPdbFileName;
StructureChooser.openStructureFileForSequence(ssm, sc, ap,
- selectedSequence, true, pdbFilename, tft, paeFilename);
+ selectedSequence, true, pdbFilename, tft, paeFilename,
+ true);
}
SwingUtilities.invokeLater(new Runnable()
{
public static void openStructureFileForSequence(
StructureSelectionManager ssm, StructureChooser sc,
AlignmentPanel ap, SequenceI seq, boolean prompt,
- String sFilename, TFType tft, String paeFilename)
+ String sFilename, TFType tft, String paeFilename,
+ boolean doXferSettings)
{
openStructureFileForSequence(ssm, sc, ap, seq, prompt, sFilename, tft,
- paeFilename, false, true);
+ paeFilename, false, true, doXferSettings);
}
public static void openStructureFileForSequence(
StructureSelectionManager ssm, StructureChooser sc,
AlignmentPanel ap, SequenceI seq, boolean prompt,
String sFilename, TFType tft, String paeFilename,
- boolean forceHeadless, boolean showAnnotations)
+ boolean forceHeadless, boolean showAnnotations,
+ boolean doXferSettings)
{
boolean headless = forceHeadless;
if (sc == null)
PDBEntry fileEntry = new AssociatePdbFileWithSeq().associatePdbWithSeq(
sFilename, DataSourceType.FILE, seq, prompt, Desktop.instance,
- tft, paeFilename);
+ tft, paeFilename, doXferSettings);
// if headless, "false" in the sc constructor above will avoid GUI behaviour
// in sc.launchStructureViewer()