Revision 6d1cd5a2
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java | ||
---|---|---|
1005 | 1005 |
monitor.beginTask(jobLabel, workingSet.getDescriptions().size()); |
1006 | 1006 |
Set<DescriptionBase> wsDescriptions = workingSet.getDescriptions(); |
1007 | 1007 |
for (DescriptionBase descriptionBase : wsDescriptions) { |
1008 |
if(monitor.isCanceled() || CharacterMatrix.this.isDisposed()){ |
|
1009 |
monitor.setCanceled(true); |
|
1010 |
return; |
|
1011 |
} |
|
1008 | 1012 |
if(descriptionBase instanceof SpecimenDescription){ |
1009 | 1013 |
CharacterMatrix.this.descriptions.add(new RowWrapper((SpecimenDescription) descriptionBase, workingSet)); |
1010 | 1014 |
} |
1011 | 1015 |
monitor.worked(1); |
1012 | 1016 |
} |
1017 |
monitor.done(); |
|
1013 | 1018 |
}); |
1014 | 1019 |
job.schedule(); |
1015 | 1020 |
} |
Also available in: Unified diff
ref #7095 Add cancel option for specimen description loading