import eu.etaxonomy.cdm.model.media.Media;
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
import eu.etaxonomy.cdm.model.taxon.Taxon;
-import eu.etaxonomy.taxeditor.editor.EditorUtil;
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
/**
* <p>MediaContentProvider class.</p>
if (parentElement instanceof TaxonEditorInput) {
Taxon taxon = ((TaxonEditorInput) parentElement).getTaxon();
if(taxon == null){
- EditorUtil.error(getClass(), "Taxon is null", null);
+ MessagingUtils.error(getClass(), "Taxon is null", null);
return NO_CHILDREN;
}
HashSet<DescriptionBase> imageGalleries = new HashSet<DescriptionBase>();
return derivedUnitFacadeImageGalleries.toArray();
} catch (DerivedUnitFacadeNotSupportedException e) {
- EditorUtil.error(this.getClass(), "DerivedUnitFacadeNotSupportedException when trying to instantiate DerivedUnitFacade", e);
+ MessagingUtils.error(this.getClass(), "DerivedUnitFacadeNotSupportedException when trying to instantiate DerivedUnitFacade", e);
}
}
if (elements != null) {
// by definition, image galleries have only one description element
if(elements.size() > 1){
- EditorUtil.error(this.getClass(), "There should be one and only one description element to hold the images. Found: " + elements.size() + " InDescription ID: " + description.getUuid(), null);
+ MessagingUtils.error(this.getClass(), "There should be one and only one description element to hold the images. Found: " + elements.size() + " InDescription ID: " + description.getUuid(), null);
}
DescriptionElementBase element = elements.iterator().next();