Project

General

Profile

« Previous | Next » 

Revision 66e51de3

Added by Patrick Plitzner over 5 years ago

ref #6321 Load asynchronously loaded entities into main session

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java
208 208
                    }
209 209
                    configurator.setPageNumber(pageNumber);
210 210
                    entities = listEntities(configurator);
211
                    /*
212
                     * IMPORTANT!
213
                     * Entities have to be loaded into the main session because they are
214
                     * loaded in a parallel asynchronous thread
215
                     */
216
                    getCdmEntitySession().load(entities, true);
217

  
211 218
                    model.addAll(entities);
212
                    //select if entity is loaded
219

  
220
                    //select entity when it is loaded
213 221
                    if(selection!=null && model.containsAll(selection.toList())){
214 222
                        EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, selection);
215 223
                    }

Also available in: Unified diff