code cleaning
authorKatja Luther <k.luther@bgbm.org>
Thu, 31 Jan 2019 14:13:59 +0000 (15:13 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 31 Jan 2019 14:15:02 +0000 (15:15 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditorPart.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusDataCellEditor.java

index c084e4d6af7e1c2d85fc859406bacaba2b39de16..cb29cf49a9000cc6003de6cee2ec1dc351d3792d 100755 (executable)
@@ -117,8 +117,7 @@ public class DistributionColumnAccessor implements IColumnPropertyAccessor<Taxon
      */
     @Override
     public void setDataValue(TaxonDistributionDTO taxonWrapper, int columnIndex, Object newValue) {
-        System.err.println("DistributionColumnAccessor: " + taxonWrapper.getNameCache());
-           if (newValue instanceof PresenceAbsenceTerm){
+        if (newValue instanceof PresenceAbsenceTerm){
                 NamedArea area =editor.getAreaToColumnIndexMap().get(columnIndex);
                 Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(taxonWrapper.getTaxonUuid());
                 if (distributionMap == null){
index cd975e8ab5bdd48aea5a4168250013439070928a..8a73d43197b466acbeaa92af93827ccca29a65b9 100755 (executable)
@@ -322,7 +322,7 @@ public class DistributionEditor extends Composite {
         this.layout();
         natTable.doCommand(new ClientAreaResizeCommand(natTable));
       //  boolean ok = natTable.doCommand(new ClientAreaResizeCommand(natTable));
-      //  System.out.println(ok);
+
     }
 
 
index ced9a80dc47bd77efc74c4cf13796f6468bedcb9..2e3636e2502f7b40fb27a842bc0c2c92cd109d89 100755 (executable)
@@ -243,8 +243,6 @@ ICdmEntitySessionEnabled, IPartContentHasSupplementalData, IPartContentHasDetail
                 }
                 if (taxon != null){
                     MergeResult result = CdmStore.getService(ITaxonService.class).merge(taxon, true);
-                    boolean removed = dto.getDescriptionsWrapper().getDescriptions().remove(desc);
-                    System.err.println("removed:"  + removed);
                 }
             }
         }
index c3aa058d4b346e9c0a6949da1d55fa08f733c207..687a06da866eb32702c6bacbf3947abc0cd7ef07 100755 (executable)
@@ -49,7 +49,6 @@ public class StatusDataCellEditor extends ComboBoxCellEditor {
             Object rowWrapper = editor.getBodyDataProvider().getRowObject(this.getRowIndex());
             if(rowWrapper instanceof TaxonDistributionDTO){
                 NamedArea area = editor.getAreaToColumnIndexMap().get(getColumnIndex());
-                System.err.println("StatusDataCellEditor: " + ((TaxonDistributionDTO)rowWrapper).getNameCache());
                 Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(((TaxonDistributionDTO) rowWrapper).getTaxonUuid());
                 if (distributionMap == null){
                     distributionMap = new HashMap();