X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2Ftools%2FTaxonomyDataObtainer.java;h=40b02dba572ae02bc16d592575caeb8a25cfc9e0;hb=5958d8c92c06f76da04a466ef7636e93a640b6a3;hp=952d3fa11265bfb4a2735c5c0c51c27c9d4d8dbc;hpb=93b3ffddb203151c92200b3498d5559cc4de7d18;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/tools/TaxonomyDataObtainer.java b/forester/java/src/org/forester/archaeopteryx/tools/TaxonomyDataObtainer.java index 952d3fa..40b02db 100644 --- a/forester/java/src/org/forester/archaeopteryx/tools/TaxonomyDataObtainer.java +++ b/forester/java/src/org/forester/archaeopteryx/tools/TaxonomyDataObtainer.java @@ -33,6 +33,7 @@ import java.util.SortedSet; import javax.swing.JOptionPane; import org.forester.analysis.AncestralTaxonomyInference; +import org.forester.analysis.AncestralTaxonomyInferenceException; import org.forester.archaeopteryx.MainFrameApplication; import org.forester.archaeopteryx.TreePanel; import org.forester.phylogeny.Phylogeny; @@ -48,7 +49,7 @@ public class TaxonomyDataObtainer implements Runnable { public TaxonomyDataObtainer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy, - boolean delete ) { + final boolean delete ) { _phy = phy; _mf = mf; _treepanel = treepanel; @@ -89,6 +90,15 @@ public class TaxonomyDataObtainer implements Runnable { JOptionPane.ERROR_MESSAGE ); return; } + catch ( final AncestralTaxonomyInferenceException e ) { + _mf.getMainPanel().getCurrentTreePanel().setArrowCursor(); + e.printStackTrace(); + JOptionPane.showMessageDialog( _mf, + e.toString(), + "Failed to obtain taxonomic information", + JOptionPane.ERROR_MESSAGE ); + return; + } finally { _mf.getMainPanel().getCurrentTreePanel().setArrowCursor(); }