Project

General

Profile

Revision 4478751c

ID4478751c416edf4866be29688ef146c9aaa24b89
Parent 000aa820
Child 9f40979f

Added by Katja Luther over 1 year ago

ref #8096: set correct task name in progress monitor manager

View differences:

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

  
122 122
            }
123 123
            // start the client monitor
124
           // monitor.subTask(remotingMonitor.getTaskName());
125 124
            monitor.beginTask(remotingMonitor.getTaskName(), remotingMonitor.getTotalWork());
126 125
            logger.info("Work to be done: " + remotingMonitor.getTotalWork());
127 126
            int editorTotalWorkDone = 0;
......
161 160

  
162 161

  
163 162
                // set dialog text
164
                monitor.setTaskName(label + " " + percentage + "% done ");
163
                monitor.setTaskName(remotingMonitor.getTaskName() + " " + percentage + "% done ");
165 164
                monitor.subTask(remotingMonitor.getSubTask());
166
//                monitor.setWorkRemaining((int) (remotingMonitor.getTotalWork()-remotingMonitor.getWorkDone()));
167
               // monitor.subTask(remotingMonitor.getSubTask(), remotingMonitor.getWorkDone());
165

  
168 166
                int worked = 0;
169 167
                if (serverTotalWorkDone > editorTotalWorkDone){
170 168
                    worked = serverTotalWorkDone - editorTotalWorkDone;
......
180 178
            if(remotingMonitor.getResult() instanceof Exception) {
181 179
                UpdateResult result = new UpdateResult();
182 180
                result.addException((Exception) remotingMonitor.getResult());
183
//                throw new IllegalStateException((Exception)remotingMonitor.getResult());
181

  
184 182
            }
185 183
            return remotingMonitor;
186 184
        } finally {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)