Revision be4a9789
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionTablePresenter.java | ||
---|---|---|
26 | 26 |
import org.vaadin.addons.lazyquerycontainer.LazyQueryContainer; |
27 | 27 |
import org.vaadin.addons.lazyquerycontainer.QueryDefinition; |
28 | 28 |
import org.vaadin.addons.lazyquerycontainer.QueryFactory; |
29 |
import org.vaadin.spring.events.EventBus.ViewEventBus; |
|
29 | 30 |
|
30 | 31 |
import com.vaadin.server.VaadinSession; |
31 | 32 |
import com.vaadin.spring.annotation.SpringComponent; |
... | ... | |
76 | 77 |
|
77 | 78 |
@Autowired |
78 | 79 |
@Qualifier("cdmRepository") |
79 |
private CdmRepository repo; |
|
80 |
private CdmRepository repo; // TODO remove, since this is already in the super class
|
|
80 | 81 |
|
81 |
public int updateDistributionField(String distributionAreaString, Object comboValue, Taxon taxon) { |
|
82 |
/** |
|
83 |
* {@inheritDoc} |
|
84 |
*/ |
|
85 |
@Override |
|
86 |
protected void eventViewBusSubscription(ViewEventBus viewEventBus) { |
|
87 |
// no point subscribing |
|
88 |
} |
|
89 |
|
|
90 |
public int updateDistributionField(String distributionAreaString, Object comboValue, Taxon taxon) { |
|
82 | 91 |
TransactionStatus tx = repo.startTransaction(); |
83 | 92 |
taxon = (Taxon)repo.getTaxonService().find(taxon.getUuid()); |
84 | 93 |
Set<DefinedTermBase> chosenTerms = getChosenTerms(); |
Also available in: Unified diff
fix #7231 replacing SpringApplicationEventBus by scoped Vaadin4Spring Event Bus