Project

General

Profile

Revision 83d0e22f

ID83d0e22f8b9dd1c79d959dec62966489fbff294f
Parent 09376415
Child abe4eec5

Added by Katja Luther over 3 years ago

ref #7463: adapt the percentage display in status bar for progress of longrunning task

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/ProgressMonitorClientManager.java
161 161

  
162 162
                // set dialog text
163 163
                monitor.setTaskName(label + " " + percentage + "% done ");
164
                //monitor.subTask(remotingMonitor.getSubTask());
165
                int worked = serverTotalWorkDone - editorTotalWorkDone;
164

  
165
                monitor.subTask(remotingMonitor.getSubTask());
166
                int worked = 0;
167
                if (serverTotalWorkDone!=editorTotalWorkDone){
168
                    worked = serverTotalWorkDone - editorTotalWorkDone;
169
                }
166 170
                if(worked > 0) {
167 171
                    logger.info("Work done since last check: " + worked);
168 172
                    monitor.worked(worked);
169 173
                }
174

  
175

  
170 176
                editorTotalWorkDone = serverTotalWorkDone;
171 177
            }
172 178
            if(remotingMonitor.getResult() instanceof Exception) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)