import eu.etaxonomy.cdm.model.common.Marker;
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
-import eu.etaxonomy.cdm.model.reference.ReferenceBase;
+import eu.etaxonomy.cdm.model.reference.Reference;
import eu.etaxonomy.taxeditor.annotatedlineeditor.EntityListener;
import eu.etaxonomy.taxeditor.annotatedlineeditor.ILineDisplayStrategy;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
*/
/** {@inheritDoc} */
public String getSupplementalText(Object entity) {
- if (entity instanceof ReferenceBase) {
- ReferenceBase reference = (ReferenceBase) HibernateProxyHelper.deproxy(entity);
+ if (entity instanceof Reference) {
+ Reference reference = (Reference) HibernateProxyHelper.deproxy(entity);
// Nobody seems to like displaying the date
// TimePeriod datePublished = ((StrictReferenceBase) reference).getDatePublished();
//
*/
/** {@inheritDoc} */
public void setText(String text, Object entity) {
- if (entity instanceof ReferenceBase) {
- ((ReferenceBase) entity).setTitleCache(text);
+ if (entity instanceof Reference) {
+ ((Reference) entity).setTitleCache(text);
}
}
*/
/** {@inheritDoc} */
public String getEmptyCacheMessage(Object entity) {
- if (entity instanceof ReferenceBase) {
+ if (entity instanceof Reference) {
return "No reference title cache";
}
if (entity instanceof TaxonNameBase) {
*/
/** {@inheritDoc} */
public boolean isEntityCacheEmpty(Object entity) {
- if (entity instanceof ReferenceBase) {
- String text = ((ReferenceBase) entity).getTitleCache();
+ if (entity instanceof Reference) {
+ String text = ((Reference) entity).getTitleCache();
return (text == null || text.equals(""));
}
if (entity instanceof TaxonNameBase) {