*/
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;
}
}