#823 fixed.
authorem.lee <em.lee@localhost>
Wed, 27 Jan 2010 14:34:32 +0000 (14:34 +0000)
committerem.lee <em.lee@localhost>
Wed, 27 Jan 2010 14:34:32 +0000 (14:34 +0000)
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/operations/CreateConceptRelationOperation.java

index 73e374f66c74c37549406d83b6be18d18b2133b1..377dc496b4acd0bd3d636378484ce74f0eb7c96c 100644 (file)
@@ -44,25 +44,11 @@ public class CreateConceptRelationOperation extends AbstractPostOperation {
        @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