Revision 6f7fec64
Added by Katja Luther about 4 years ago
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
code cleaning