Project

General

Profile

Revision 279ff31a

ID279ff31acdca63523001bf44ab36c4227ef9118e
Parent 59d2eb6d
Child 7588eacb

Added by Katja Luther about 3 years ago

ref #6799: start the progress monitor

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/TaxonNodeOutStreamPartitioner.java
96 96
		this.partitionSize = partitionSize;
97 97
		this.state = state;
98 98
		this.parentMonitor = parentMonitor;
99
		this.parentMonitor.beginTask("Start", totalCount);
99 100
		this.parentTicks = parentTicks;
100 101

  
101 102

  
......
105 106

  
106 107
	public void initialize(){
107 108
	    if (totalCount < 0){
109

  
108 110
	        parentMonitor.subTask("Compute total number of records");
109 111
	        totalCount = ((Long)repository.getTaxonNodeService().count(filter)).intValue();
110 112
	        idList = repository.getTaxonNodeService().idList(filter);
111 113
	        int parTicks = this.parentTicks == null? totalCount : this.parentTicks;
114

  
112 115
	        monitor = SubProgressMonitor.NewStarted(parentMonitor, parTicks,
113 116
	                "Taxon node streamer", totalCount * (retrieveFactor +  iterateFactor));
114 117
	        idIterator = idList.iterator();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)