- temporarily commented compile errors
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / dna / AmplificationGelPhotoCollectionDetailSection.java
index ee60c70c9e212c0dc3d9630ead4da10e5e9e2887..e982e7ff2edb5aa93376ab3e1b02b0ade4b53cbb 100644 (file)
@@ -45,9 +45,9 @@ public class AmplificationGelPhotoCollectionDetailSection extends AbstractEntity
      */
     @Override
     public Collection<Media> getCollection(Amplification entity) {
-        if(entity.getGelPhoto()!=null){
-            return Collections.singleton(entity.getGelPhoto());
-        }
+//        if(entity.getGelPhoto()!=null){
+//            return Collections.singleton(entity.getGelPhoto());
+//        }
         return Collections.EMPTY_LIST;
     }
 
@@ -56,9 +56,9 @@ public class AmplificationGelPhotoCollectionDetailSection extends AbstractEntity
      */
     @Override
     public Media createNewElement() {
-        if(getEntity().getGelPhoto()==null){
-            return Media.NewInstance();
-        }
+//        if(getEntity().getGelPhoto()==null){
+//            return Media.NewInstance();
+//        }
         return null;
     }
 
@@ -67,9 +67,9 @@ public class AmplificationGelPhotoCollectionDetailSection extends AbstractEntity
      */
     @Override
     public void addElement(Media element) {
-        if(getEntity().getGelPhoto()==null){
-            getEntity().setGelPhoto(element);
-        }
+//        if(getEntity().getGelPhoto()==null){
+//            getEntity().setGelPhoto(element);
+//        }
 
     }
 
@@ -78,7 +78,7 @@ public class AmplificationGelPhotoCollectionDetailSection extends AbstractEntity
      */
     @Override
     public void removeElement(Media element) {
-        getEntity().setGelPhoto(null);
+//        getEntity().setGelPhoto(null);
     }
 
     /* (non-Javadoc)