* 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.handler.create;
import javax.inject.Named;
import eu.etaxonomy.taxeditor.newWizard.NewNonViralNameWizard;
/**
- *
* @author pplitzner
* @date 10.10.2017
- *
*/
public class NewNameHandler {
wizard.init(null, null);
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.open();
-
}
-}
+}
\ No newline at end of file
+/**
+* Copyright (C) 2007 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.handler.defaultHandler;
+
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState;
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4;
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
-
-public class DefaultOpenSpecimenEditorForTypeSpecimenHandler extends
- DefaultOpenHandlerBaseE4<SpecimenTypeDesignation> {
-
-// @Override
-// protected SpecimenTypeDesignation getEntity(UUID uuid) {
-// return CdmStore.getCommonService().find(SpecimenTypeDesignation.class, uuid);
-// }
+public class DefaultOpenSpecimenEditorForTypeSpecimenHandler
+ extends DefaultOpenHandlerBaseE4<SpecimenTypeDesignation> {
@Override
protected void open(SpecimenTypeDesignation entity, Shell shell, EPartService partService) {
protected String getPartId() {
return AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DERIVATE_DERIVATEVIEW;
}
-
-}
+}
\ No newline at end of file
+/**
+* Copyright (C) 2007 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.handler.defaultHandler;
+
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.swt.widgets.Shell;
import eu.etaxonomy.taxeditor.editor.EditorUtil;
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4;
-
-public class DefaultOpenTaxonEditorForTaxonBaseHandler extends DefaultOpenHandlerBaseE4<Object> {
-
-// @Override
-// protected TaxonBase getEntity(UUID uuid) {
-// return CdmStore.getService(ITaxonService.class).load(uuid);
-// }
+public class DefaultOpenTaxonEditorForTaxonBaseHandler
+ extends DefaultOpenHandlerBaseE4<Object> {
@Override
protected void open(Object entity, Shell shell, EPartService partService) throws Exception {
if (entity instanceof TaxonBase){
- EditorUtil.openTaxonBaseE4(((TaxonBase)entity).getUuid(), modelService, partService, application);
+ EditorUtil.openTaxonBaseE4(((TaxonBase<?>)entity).getUuid(), modelService, partService, application);
}else if (entity instanceof UuidAndTitleCache){
- EditorUtil.openTaxonBaseE4(((UuidAndTitleCache)entity).getUuid(), modelService, partService, application);
+ EditorUtil.openTaxonBaseE4(((UuidAndTitleCache<?>)entity).getUuid(), modelService, partService, application);
}else{
throw new Exception("Only objects of type taxonbase can be handled.");
}
}
-
-
-
- /**
- * {@inheritDoc}
- */
@Override
protected boolean canExecute(Object entity) {
return (entity instanceof TaxonBase) || (entity instanceof UuidAndTitleCache);
protected String getPartId() {
return AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_NAME_E4_TAXONNAMEEDITORE4;
}
-
-}
+}
\ No newline at end of file
+/**
+* Copyright (C) 2007 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.handler.defaultHandler;
+
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
-
-public class DefaultOpenTaxonEditorForTaxonNodeHandler extends DefaultOpenHandlerBaseE4<TaxonNodeDto> {
-
-// @Override
-// protected TaxonNode getEntity(UUID uuid) {
-// return CdmStore.getService(ITaxonNodeService.class).load(uuid);
-// }
+public class DefaultOpenTaxonEditorForTaxonNodeHandler
+ extends DefaultOpenHandlerBaseE4<TaxonNodeDto> {
@Override
protected void open(TaxonNodeDto entity, Shell shell, EPartService partService) {
}
}
- /**
- * {@inheritDoc}
- */
@Override
protected boolean canExecute(Object selection) {
if (((IStructuredSelection)selection).getFirstElement() instanceof TaxonNodeDto){
protected String getPartId() {
return AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_NAME_E4_TAXONNAMEEDITORE4;
}
-
-}
+}
\ No newline at end of file