import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
import eu.etaxonomy.cdm.model.taxon.Taxon;
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
-import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.preference.Resources;
import eu.etaxonomy.taxeditor.security.RequiredPermissions;
import eu.etaxonomy.taxeditor.store.CdmStore;
try{
Taxon taxon = (Taxon) HibernateProxyHelper.deproxy(taxonNode.getTaxon());
if(taxon == null){
- NavigationUtil.error(getClass(), "The taxon node does not have a taxon attached to it. Please check your import. TaxonNode: " + element, null);
+ MessagingUtils.error(getClass(), "The taxon node does not have a taxon attached to it. Please check your import. TaxonNode: " + element, null);
// throw new RuntimeException("The data your are trying to view is corrupt. Please check your import.");
}else{
try{
return taxon.getName() != null ? ((IIdentifiableEntity) HibernateProxyHelper.deproxy(taxon.getName())).getTitleCache() : new String();
}catch(Exception e){
- NavigationUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
}
}
}catch (LazyInitializationException e){
- NavigationUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
}
}