added a readme file
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / BulkEditorLineDisplay.java
index 95923f0dafbcf59b54c01c18531e47c8b31729b2..91bfb3de4545e29e618b77ac623d91d80699b142 100644 (file)
@@ -23,7 +23,7 @@ import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
 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;
@@ -90,8 +90,8 @@ public class BulkEditorLineDisplay implements ILineDisplayStrategy {
         */
        /** {@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();
 //                                             
@@ -134,8 +134,8 @@ public class BulkEditorLineDisplay implements ILineDisplayStrategy {
         */
        /** {@inheritDoc} */
        public void setText(String text, Object entity) {
-               if (entity instanceof ReferenceBase) {
-                       ((ReferenceBase) entity).setTitleCache(text);                   
+               if (entity instanceof Reference) {
+                       ((Reference) entity).setTitleCache(text);                       
                }
        }
 
@@ -173,7 +173,7 @@ public class BulkEditorLineDisplay implements ILineDisplayStrategy {
         */
        /** {@inheritDoc} */
        public String getEmptyCacheMessage(Object entity) {
-               if (entity instanceof ReferenceBase) {
+               if (entity instanceof Reference) {
                        return "No reference title cache";
                }
                if (entity instanceof TaxonNameBase) {
@@ -190,8 +190,8 @@ public class BulkEditorLineDisplay implements ILineDisplayStrategy {
         */
        /** {@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) {