public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
bind();
- // Start the main progress monitor.
- IProgressMonitor newMonitor = StoreUtil.startMainMonitor(monitor,"Creating Taxon Node", 3);
-
- // Do one step
- newMonitor.worked(1);
+ newTaxon.setSec(parentNode.getReference());
+ monitor.worked(20);
- try {
- // Operation steps
+ // add the taxon
+ childTaxonNode = parentNode.addChildTaxon(newTaxon, parentNode.getReference(), parentNode.getMicroReference(), null);
+ monitor.worked(40);
- newTaxon.setSec(parentNode.getReference());
- StoreUtil.isCanceled(newMonitor, 1);
-
- // add the taxon
- childTaxonNode = parentNode.addChildTaxon(newTaxon, parentNode.getReference(), parentNode.getMicroReference(), null);
- StoreUtil.isCanceled(newMonitor, 1);
- }
- finally {
-
- // Stop the progress monitor.
- newMonitor.done();
- }
-
return postExecute(childTaxonNode);
}