public IStatus execute(IProgressMonitor monitor, IAdaptable info)\r
throws ExecutionException {\r
\r
- // Start the main progress monitor.\r
- IProgressMonitor newMonitor = StoreUtil.startMainMonitor(monitor,"Changing Homotypic Group of Basionym", 3);\r
+ TaxonNameBase<?, ?> oldSynonymName = synonym.getName();\r
+ monitor.worked(20);\r
\r
- // Do one step\r
- newMonitor.worked(1);\r
-\r
- try {\r
- // Operation steps\r
- TaxonNameBase<?, ?> oldSynonymName = synonym.getName();\r
- StoreUtil.isCanceled(newMonitor, 1);\r
- \r
- oldSynonymName.setAsGroupsBasionym();\r
- StoreUtil.isCanceled(newMonitor, 1);\r
- }\r
- finally {\r
- \r
- // Stop the progress monitor.\r
- newMonitor.done();\r
- }\r
+ oldSynonymName.setAsGroupsBasionym();\r
+ monitor.worked(40);\r
\r
return postExecute(synonym);\r
}\r