Project

General

Profile

Revision 6f7fec64

ID6f7fec642793363e1d1d316dcbed0ddba2996cf8
Parent ac05a823
Child 44032a96

Added by Katja Luther over 1 year ago

code cleaning

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java
117 117
     */
118 118
    @Override
119 119
    public void setDataValue(TaxonDistributionDTO taxonWrapper, int columnIndex, Object newValue) {
120
        System.err.println("DistributionColumnAccessor: " + taxonWrapper.getNameCache());
121
           if (newValue instanceof PresenceAbsenceTerm){
120
        if (newValue instanceof PresenceAbsenceTerm){
122 121
                NamedArea area =editor.getAreaToColumnIndexMap().get(columnIndex);
123 122
                Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(taxonWrapper.getTaxonUuid());
124 123
                if (distributionMap == null){
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditor.java
322 322
        this.layout();
323 323
        natTable.doCommand(new ClientAreaResizeCommand(natTable));
324 324
      //  boolean ok = natTable.doCommand(new ClientAreaResizeCommand(natTable));
325
      //  System.out.println(ok);
325

  
326 326
    }
327 327

  
328 328

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditorPart.java
243 243
                }
244 244
                if (taxon != null){
245 245
                    MergeResult result = CdmStore.getService(ITaxonService.class).merge(taxon, true);
246
                    boolean removed = dto.getDescriptionsWrapper().getDescriptions().remove(desc);
247
                    System.err.println("removed:"  + removed);
248 246
                }
249 247
            }
250 248
        }
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusDataCellEditor.java
49 49
            Object rowWrapper = editor.getBodyDataProvider().getRowObject(this.getRowIndex());
50 50
            if(rowWrapper instanceof TaxonDistributionDTO){
51 51
                NamedArea area = editor.getAreaToColumnIndexMap().get(getColumnIndex());
52
                System.err.println("StatusDataCellEditor: " + ((TaxonDistributionDTO)rowWrapper).getNameCache());
53 52
                Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(((TaxonDistributionDTO) rowWrapper).getTaxonUuid());
54 53
                if (distributionMap == null){
55 54
                    distributionMap = new HashMap();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)