Project

General

Profile

Revision 9622040d

ID9622040d2591b94381e10494b48ddb66b33d7aac
Parent fe330183
Child 065f7e99

Added by Patrick Plitzner 10 months ago

ref #6794 Add progress monitor break point

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/owl/out/OwlExportUtil.java
9 9
package eu.etaxonomy.cdm.io.descriptive.owl.out;
10 10

  
11 11
import java.util.ArrayList;
12
import java.util.Collection;
12 13
import java.util.List;
13 14
import java.util.Set;
14 15

  
......
33 34
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
34 35
import eu.etaxonomy.cdm.model.term.Representation;
35 36
import eu.etaxonomy.cdm.model.term.TermBase;
36
import eu.etaxonomy.cdm.model.term.TermTree;
37 37
import eu.etaxonomy.cdm.model.term.TermNode;
38
import eu.etaxonomy.cdm.model.term.TermTree;
38 39
import eu.etaxonomy.cdm.model.term.TermVocabulary;
39 40
import eu.etaxonomy.cdm.persistence.dto.TermDto;
40 41

  
......
60 61
        vocabularyRepresentationResources.forEach(rep->vocabularyResource.addProperty(OwlUtil.propHasRepresentation, rep));
61 62

  
62 63
        // add terms
63
        repo.getVocabularyService().getTopLevelTerms(vocabulary.getUuid()).forEach(termDto->addTopLevelTerm(termDto, vocabularyResource, repo, state));
64

  
64
        Collection<TermDto> topLevelTerms = repo.getVocabularyService().getTopLevelTerms(vocabulary.getUuid());
65
        for (TermDto termDto : topLevelTerms) {
66
            if(state.getConfig().getProgressMonitor().isCanceled()){
67
                break;
68
            }
69
            addTopLevelTerm(termDto, vocabularyResource, repo, state);
70
        }
65 71
        return vocabularyResource;
66 72
    }
67 73

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)