@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,"Creating Concept Relationship", 2);\r
- \r
- // Do one step\r
- newMonitor.worked(1);\r
\r
- try {\r
- // Operation steps\r
- \r
- // add concept to taxon\r
- concept.addTaxonRelation(taxon, taxonRelationshipType, null, null); \r
- StoreUtil.isCanceled(newMonitor, 1);\r
- }\r
- finally {\r
- \r
- // Stop the progress monitor.\r
- newMonitor.done();\r
- }\r
+ monitor.worked(20);\r
+ // add concept to taxon\r
+ concept.addTaxonRelation(taxon, taxonRelationshipType, null, null); \r
+ monitor.worked(40);\r
\r
// redraw editor if exists\r
return postExecute(concept);\r