@Override\r
public IStatus execute(IProgressMonitor monitor, IAdaptable info)\r
throws ExecutionException {\r
- \r
- // Start the main progress monitor.\r
- IProgressMonitor newMonitor = StoreUtil.startMainMonitor(monitor,"Deleting Image", 2);\r
- \r
- // Do one step\r
- newMonitor.worked(1);\r
\r
- try {\r
- // Operation steps\r
+ monitor.worked(20);\r
+ ImagesUtility.removeTaxonImage(taxon, description, imageFile);\r
+ monitor.worked(40);\r
\r
- ImagesUtility.removeTaxonImage(taxon, description, imageFile);\r
- StoreUtil.isCanceled(newMonitor, 1);\r
- }\r
- finally {\r
- \r
- // Stop the progress monitor.\r
- newMonitor.done();\r
- }\r
- \r
return postExecute(null);\r
}\r
\r