Revision abe4eec5
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java | ||
---|---|---|
179 | 179 |
configurator.setPageNumber(pageNumber); |
180 | 180 |
entities = listEntities(configurator); |
181 | 181 |
model.addAll(entities); |
182 |
//select if entity is loaded |
|
183 |
if(selection!=null && model.containsAll(selection.toList())){ |
|
184 |
EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, selection); |
|
185 |
} |
|
182 | 186 |
pageNumber++; |
183 | 187 |
monitor.worked(pageSize); |
184 | 188 |
long workedLong = pageSize*pageNumber; |
... | ... | |
186 | 190 |
monitor.setTaskName(String.format(Messages.AbstractBulkEditorInput_LOADED, loadedCount, totalWork, getName())); |
187 | 191 |
} while (!entities.isEmpty()); |
188 | 192 |
monitor.done(); |
189 |
EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, selection); |
|
193 |
if(selection!=null){ |
|
194 |
EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, selection); |
|
195 |
} |
|
190 | 196 |
}); |
191 | 197 |
searchJob.schedule(); |
192 | 198 |
} |
Also available in: Unified diff
ref #7439 Re-select after entity has been loaded