Revision 9b853065
Added by Niels Hoffmann almost 14 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/IoConfiguratorBase.java | ||
---|---|---|
9 | 9 |
import org.apache.log4j.Logger; |
10 | 10 |
|
11 | 11 |
import eu.etaxonomy.cdm.api.application.CdmApplicationController; |
12 |
import eu.etaxonomy.cdm.common.IProgressMonitor; |
|
12 | 13 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
13 | 14 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.DO_REFERENCES; |
14 | 15 |
|
... | ... | |
50 | 51 |
private boolean doMarker = true; |
51 | 52 |
private boolean doUser = true; |
52 | 53 |
|
54 |
private IProgressMonitor progressMonitor; |
|
55 |
|
|
53 | 56 |
|
54 | 57 |
/* (non-Javadoc) |
55 | 58 |
* @see eu.etaxonomy.cdm.io.common.IIoConfigurator#getDbSchemaValidation() |
... | ... | |
240 | 243 |
public void setUseTaxonomicTree(boolean useTaxonomicTree) { |
241 | 244 |
this.useTaxonomicTree = useTaxonomicTree; |
242 | 245 |
} |
246 |
|
|
247 |
@Override |
|
248 |
public void setProgressMonitor(IProgressMonitor monitor) { |
|
249 |
this.progressMonitor = monitor; |
|
250 |
} |
|
251 |
|
|
252 |
public IProgressMonitor getProgressMonitor(){ |
|
253 |
return this.progressMonitor; |
|
254 |
} |
|
255 |
|
|
256 |
@Override |
|
257 |
public void updateProgress(String message) { |
|
258 |
if(progressMonitor != null){ |
|
259 |
progressMonitor.worked(1); |
|
260 |
progressMonitor.subTask(message); |
|
261 |
} |
|
262 |
} |
|
243 | 263 |
} |
Also available in: Unified diff
Integrated progress monitor into application controller and started integrating it to some imports.