public void actionPerformed(ActionEvent e)
{
- javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ new Thread(new Runnable() {
public void run()
{
alignPanel.av.getSequenceSelection(),
alignPanel.alignFrame).fetchDBRefs(false);
}
-
- });
+ }).start();
+
}
});
public void discoverPDB_actionPerformed()
{
- SequenceI[] sequences =
- ap.av.selectionGroup == null ?
- new Sequence[]{sequence}
- : ap.av.selectionGroup.getSequencesInOrder(ap.av.alignment);
-
- new jalview.ws.DBRefFetcher(sequences,
- ap.alignFrame).fetchDBRefs(false);
+
+ final SequenceI[] sequences =
+ ((ap.av.selectionGroup == null)
+ ? new Sequence[]{sequence}
+ : ap.av.selectionGroup.getSequencesInOrder(ap.av.alignment));
+ Thread discpdb = new Thread(new Runnable() {
+ public void run()
+ {
+
+ new jalview.ws.DBRefFetcher(sequences,
+ ap.alignFrame).fetchDBRefs(false);
+ }
+
+ });
+ discpdb.start();
}
public void sequenceFeature_actionPerformed()