Revision 04bb4f0f
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/ConvertTeam2PersonHandlerE4.java | ||
---|---|---|
53 | 53 |
|
54 | 54 |
Person person = null; |
55 | 55 |
UpdateResult result = null; |
56 |
Team team = (Team) selection; |
|
56 | 57 |
|
57 | 58 |
try { |
58 | 59 |
result = CdmStore.getService(IAgentService.class).convertTeam2Person(selection.getUuid()); |
... | ... | |
63 | 64 |
} |
64 | 65 |
if (result != null && result.isOk()){ |
65 | 66 |
person = (Person)result.getCdmEntity(); |
67 |
boolean test = editor.getEditorInput().getModel().remove(team); |
|
68 |
editor.getEditorInput().getModel().add(person); |
|
66 | 69 |
} |
67 | 70 |
if (person != null){ |
68 | 71 |
editor.refresh(); |
Also available in: Unified diff
fix #6392: fix remaining bulk editor migration issues