ref #6089 Fix not compiling operation
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 15 Sep 2016 22:43:26 +0000 (00:43 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 15 Sep 2016 22:43:26 +0000 (00:43 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/OpenParentHandler.java

index f8e3350a48f83acd44238c49237e91cc0a0c5dd8..73d4598c136727523479f0fbfb38a326f517f29f 100644 (file)
@@ -29,23 +29,21 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils;
  */
 public class OpenParentHandler extends AbstractHandler implements IHandler {
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
-        */
        /** {@inheritDoc} */
        public Object execute(ExecutionEvent event) throws ExecutionException {
-               Taxon parent = EditorUtil.getActiveMultiPageTaxonEditor().getTaxon().getTaxonomicParent();
-               
-               if(parent != null){
-                       try {
-                               EditorUtil.openTaxonNode(parent.getUuid());
-                       } catch (PartInitException e) {
-                               throw new RuntimeException("Error opening parent taxon", e);
-                       } catch (Exception e) {
-                               MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
-                       }
-               }
-               
-               return null;
+               throw new RuntimeException("Open parent not supported anymore");
+//             Taxon parent = EditorUtil.getActiveMultiPageTaxonEditor().getTaxon().getTaxonomicParent();
+//             
+//             if(parent != null){
+//                     try {
+//                             EditorUtil.openTaxonNode(parent.getUuid());
+//                     } catch (PartInitException e) {
+//                             throw new RuntimeException("Error opening parent taxon", e);
+//                     } catch (Exception e) {
+//                             MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
+//                     }
+//             }
+//             
+//             return null;
        }
 }