List<SequenceI> seqsWithoutSourceDBRef = null;
- private boolean noChooserGUI = false;
+ private boolean showChooserGUI = true;
private static StructureViewer lastTargetedView = null;
public StructureChooser(SequenceI[] selectedSeqs, SequenceI selectedSeq,
AlignmentPanel ap)
{
- this(selectedSeqs, selectedSeq, ap, false);
+ this(selectedSeqs, selectedSeq, ap, true);
}
public StructureChooser(SequenceI[] selectedSeqs, SequenceI selectedSeq,
- AlignmentPanel ap, boolean noChooserGUI)
+ AlignmentPanel ap, boolean showGUI)
{
// which FTS engine to use
data = StructureChooserQuerySource.getQuerySourceFor(selectedSeqs);
this.selectedSequence = selectedSeq;
this.selectedSequences = selectedSeqs;
this.progressIndicator = (ap == null) ? null : ap.alignFrame;
- this.noChooserGUI = noChooserGUI;
+ this.showChooserGUI = showGUI;
init();
}
populateFilterComboBox(isStructuresDiscovered(), cachedPDBExists);
discoverStructureViews();
updateProgressIndicator(null, startTime);
- mainFrame.setVisible(noChooserGUI);
+ mainFrame.setVisible(showChooserGUI);
updateCurrentView();
}
public static void openStructureFileForSequence(AlignmentPanel ap,
SequenceI seq, File sFile)
{
+ //Open the chooser headlessly. Not sure this is actually needed ?
StructureChooser sc = new StructureChooser(new SequenceI[] { seq }, seq,
- ap, true);
+ ap, false);
StructureSelectionManager ssm = ap.getStructureSelectionManager();
PDBEntry fileEntry = null;
try
new PDBEntry[]
{ fileEntry }, ap, new SequenceI[] { seq });
- sc.mainFrame.dispose();
- sc.noChooserGUI = false;
+ sc.mainFrame.dispose();
}
}