diff --git a/uk/ac/sanger/artemis/components/MultiComparator.java b/uk/ac/sanger/artemis/components/MultiComparator.java index c412fd8e69ce82af1b2d1edd540a5646b1c51860..9621c52fdfc2dd95fba4cf96ab993eb00b6fda90 100644 --- a/uk/ac/sanger/artemis/components/MultiComparator.java +++ b/uk/ac/sanger/artemis/components/MultiComparator.java @@ -1075,35 +1075,27 @@ public class MultiComparator extends JFrame private void readAnEntry(final EntrySource this_source, final EntryGroup entry_group) { - SwingWorker entryWorker = new SwingWorker() + try { - public Object construct() - { - try - { - final Entry new_entry = this_source.getEntry(entry_group.getBases(), - true); - if(new_entry != null) - entry_group.add(new_entry); - } - catch(final OutOfRangeException e) - { - new MessageDialog(MultiComparator.this, - "read failed: one of the features " + - "in the entry has an out of " + - "range location: " + - e.getMessage()); - } - catch(final IOException e) - { - new MessageDialog(MultiComparator.this, - "read failed due to an IO error: " + - e.getMessage()); - } - return null; - } - }; - entryWorker.start(); + final Entry new_entry = this_source.getEntry(entry_group.getBases(), + true); + if(new_entry != null) + entry_group.add(new_entry); + } + catch(final OutOfRangeException e) + { + new MessageDialog(MultiComparator.this, + "read failed: one of the features " + + "in the entry has an out of " + + "range location: " + + e.getMessage()); + } + catch(final IOException e) + { + new MessageDialog(MultiComparator.this, + "read failed due to an IO error: " + + e.getMessage()); + } } /**