Revision 6e9595e7
Added by Patrick Plitzner almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionSettingsConfigWindow.java | ||
---|---|---|
64 | 64 |
private ComboBox distAreaBox; |
65 | 65 |
private ListSelect namedAreaList; |
66 | 66 |
private TreeTable taxonTree; |
67 |
DistributionTableView distributionTableView; |
|
67 | 68 |
|
68 | 69 |
/** |
69 | 70 |
* The constructor should first build the main layout, set the |
... | ... | |
75 | 76 |
*/ |
76 | 77 |
public DistributionSettingsConfigWindow(DistributionTableView distributionTableView) { |
77 | 78 |
super(); |
79 |
this.distributionTableView = distributionTableView; |
|
78 | 80 |
} |
79 | 81 |
|
80 | 82 |
@Override |
... | ... | |
270 | 272 |
} |
271 | 273 |
term = (TermVocabulary<NamedArea>) distAreaBox.getValue(); |
272 | 274 |
Set<NamedArea> selectedAreas = (Set<NamedArea>) namedAreaList.getValue(); |
273 |
DistributionEditorUtil.openDistributionView(taxonNodes, term, selectedAreas, classificationUuid);
|
|
275 |
DistributionEditorUtil.updateDistributionView(distributionTableView, taxonNodes, term, selectedAreas, classificationUuid);
|
|
274 | 276 |
window.close(); |
275 | 277 |
} |
276 | 278 |
else if(source==cancelButton){ |
... | ... | |
298 | 300 |
private UuidAndTitleCache<TaxonNode> getUuidAndTitleCacheFromRowId(Object classificationSelection) { |
299 | 301 |
String uuidString = (String) classificationBox.getContainerProperty(classificationSelection, "uuid").getValue(); |
300 | 302 |
Property rootNodeContainerProperty = null; |
301 |
|
|
303 |
|
|
302 | 304 |
Collection<?> ids = classificationBox.getContainerPropertyIds(); |
303 | 305 |
//use for loop here because the case of the root node id columns differs between some DBs |
304 | 306 |
for (Object id : ids) { |
Also available in: Unified diff
Fix service handling and refresh problem for distribution table