import org.eclipse.e4.ui.workbench.modeling.EModelService;
+import eu.etaxonomy.cdm.model.media.Media;
import eu.etaxonomy.cdm.model.molecular.DnaSample;
import eu.etaxonomy.cdm.model.occurrence.DerivationEventType;
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
public class AddMediaSpecimenHandler extends AbstractAddDerivativeHandler{
- @Inject
- private EModelService modelService;
+// @Inject
+// private EModelService modelService;
@Override
protected boolean isAllowed(Object derivative) {
*/
@Override
protected DerivedUnit createDerivative() {
- return MediaSpecimen.NewInstance(SpecimenOrObservationType.StillImage);
+ MediaSpecimen mediaSpecimen = MediaSpecimen.NewInstance(SpecimenOrObservationType.StillImage);
+ mediaSpecimen.setMediaSpecimen(Media.NewInstance());
+ return mediaSpecimen;
}
/**