Project

General

Profile

« Previous | Next » 

Revision 4f6b8e6e

Added by Patrick Plitzner about 6 years ago

ref #7095 Adding monitor information for description loading job

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java
1025 1025

  
1026 1026

  
1027 1027
    public void loadDescriptions(WorkingSet workingSet) {
1028
        Job job = Job.create("Load character data", (ICoreRunnable) monitor -> {
1029
            List<RowWrapper> rowWrappers = new ArrayList<>();
1028
        String jobLabel = "Load character data";
1029
        Job job = Job.create(jobLabel, (ICoreRunnable) monitor -> {
1030
            monitor.beginTask(jobLabel, CharacterMatrix.this.descriptions.size());
1030 1031
            Set<DescriptionBase> wsDescriptions = workingSet.getDescriptions();
1031 1032
            for (DescriptionBase descriptionBase : wsDescriptions) {
1032 1033
                if(descriptionBase instanceof SpecimenDescription){
1033 1034
                    CharacterMatrix.this.descriptions.add(new RowWrapper((SpecimenDescription) descriptionBase, workingSet));
1034 1035
                }
1036
                monitor.worked(1);
1035 1037
            }
1036 1038
        });
1037 1039
        job.schedule();

Also available in: Unified diff