return _sn_up_cache_map;
}
+
+ @SuppressWarnings("unchecked")
private final static UniProtTaxonomy obtainTaxonomy( final HashMap<String, UniProtTaxonomy> cache,
final Object query,
final QUERY_TYPE qt ) throws IOException,
break;
case LIN:
return obtainUniProtTaxonomyFromLineage( ( List<String> ) query );
+
default:
throw new RuntimeException();
}
not_found = obtainDetailedTaxonomicInformation( _phy, _delete, _allow_simple_names );
}
catch ( final UnknownHostException e ) {
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
"Could not connect to \"" + getBaseUrl() + "\"",
"Network error during taxonomic information gathering",
JOptionPane.ERROR_MESSAGE );
}
catch ( final IOException e ) {
e.printStackTrace();
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
e.toString(),
"Failed to obtain taxonomic information",
JOptionPane.ERROR_MESSAGE );
}
catch ( final AncestralTaxonomyInferenceException e ) {
e.printStackTrace();
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
e.toString(),
"Failed to obtain taxonomic information",
JOptionPane.ERROR_MESSAGE );
}
if ( ( _phy == null ) || _phy.isEmpty() ) {
try {
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
"None of the external node taxonomies could be resolved",
"Taxonomy Tool Failed",
JOptionPane.WARNING_MESSAGE );
sb.append( "..." );
}
try {
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
sb.toString(),
"Taxonomy Tool Completed",
JOptionPane.WARNING_MESSAGE );
}
else {
try {
- JOptionPane.showMessageDialog( _mf,
+ JOptionPane.showMessageDialog( _mf.getThisFrame(),
"Taxonomy tool successfully completed",
"Taxonomy Tool Completed",
JOptionPane.INFORMATION_MESSAGE );