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;
public TaxonomyDataObtainer( final MainFrameApplication mf,
final TreePanel treepanel,
final Phylogeny phy,
- boolean delete ) {
+ final boolean delete ) {
_phy = phy;
_mf = mf;
_treepanel = treepanel;
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();
}