Revision 218fbd04
Added by Cherian Mathew about 9 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/session/SelectionService.java | ||
---|---|---|
12 | 12 |
import java.util.ArrayList; |
13 | 13 |
import java.util.List; |
14 | 14 |
|
15 |
import eu.etaxonomy.cdm.vaadin.util.CdmVaadinUtilities;
|
|
15 |
import com.vaadin.ui.UI;
|
|
16 | 16 |
|
17 | 17 |
/** |
18 | 18 |
* @author cmathew |
... | ... | |
50 | 50 |
public void fireSelectionEvent(final SelectionEvent event, boolean async) { |
51 | 51 |
for(final ISelectionListener listener : listeners) { |
52 | 52 |
if(async) { |
53 |
CdmVaadinUtilities.asyncExec(new Runnable() {
|
|
53 |
UI.getCurrent().access(new Runnable() {
|
|
54 | 54 |
@Override |
55 | 55 |
public void run() { |
56 | 56 |
listener.onSelect(event); |
Also available in: Unified diff
CdmProgressComponent : Component which indicates progress via text and a progress bar
NewTaxonBaseComposite, StatusComposite : Added taxon name field for synonym creation and using new operation and progress component objects
StatusComposite : Corrections
CdmSQLContainer, LeafNodeTaxonContainer : Moved non-generic methods from CdmSQLContainer to LeafNodeTaxonContainer
StatusPresenter, IStatusComposite : added id filter methods as well as methods to remove all dynamic filters and to refresh the synonym cache
SelectionService : using UI.access to update ui
CdmQueryFactory : removed rank inner join for taxon base query
CdmVaadinOperation : Class which handles async and sync operations
CdmVaadinUtilities : Added methods to run new CdmVaadinOperation objects and to recursively enable / disable components