cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / descriptiveDataSet / handler / OpenDescriptiveDataSetEditorHandler.java
index 6a1258af22d4a16ae5a5c9d49d8e36b227732582..52d49cc7bef6d87710f410ccb1bddb002ae385fe 100644 (file)
@@ -1,38 +1,38 @@
-
+/**
+ * Copyright (C) 2014 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
 package eu.etaxonomy.taxeditor.editor.descriptiveDataSet.handler;
 
-import java.util.UUID;
-
 import org.eclipse.e4.ui.workbench.modeling.EPartService;
 import org.eclipse.swt.widgets.Shell;
 
-import eu.etaxonomy.cdm.api.service.IDescriptiveDataSetService;
 import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
 import eu.etaxonomy.taxeditor.editor.AppModelId;
 import eu.etaxonomy.taxeditor.editor.EditorUtil;
 import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4;
-import eu.etaxonomy.taxeditor.store.CdmStore;
 
 public class OpenDescriptiveDataSetEditorHandler extends DefaultOpenHandlerBaseE4<DescriptiveDataSet>{
 
     /**
      * {@inheritDoc}
      */
-    @Override
-    protected DescriptiveDataSet getEntity(UUID uuid) {
-        return CdmStore.getService(IDescriptiveDataSetService.class).load(uuid);
-    }
+//    @Override
+//    protected DescriptiveDataSet getEntity(UUID uuid) {
+//        return CdmStore.getService(IDescriptiveDataSetService.class).load(uuid);
+//    }
 
     @Override
     protected void open(DescriptiveDataSet entity, Shell shell, EPartService partService) {
         EditorUtil.openDescriptiveDataSetEditor(entity.getUuid(), modelService, partService, application);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
-    protected boolean canExecute(DescriptiveDataSet entity) {
+    protected boolean canExecute(Object entity) {
         return true;
     }
 
@@ -40,5 +40,4 @@ public class OpenDescriptiveDataSetEditorHandler extends DefaultOpenHandlerBaseE
     protected String getPartId() {
         return AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETEDITOR;
     }
-
 }
\ No newline at end of file