Revision 884aefac
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/defaultHandler/DefaultOpenSpecimenEditorForTypeSpecimenHandler.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor.editor.handler.defaultHandler; |
2 |
import java.util.UUID; |
|
3 |
|
|
4 | 2 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
5 | 3 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
6 | 4 |
import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState; |
5 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
7 | 6 |
import org.eclipse.swt.widgets.Shell; |
8 | 7 |
|
9 | 8 |
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation; |
... | ... | |
11 | 10 |
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView; |
12 | 11 |
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateViewEditorInput; |
13 | 12 |
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4; |
14 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
15 | 13 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
16 | 14 |
|
17 | 15 |
|
18 | 16 |
public class DefaultOpenSpecimenEditorForTypeSpecimenHandler extends |
19 | 17 |
DefaultOpenHandlerBaseE4<SpecimenTypeDesignation> { |
20 | 18 |
|
21 |
@Override |
|
22 |
protected SpecimenTypeDesignation getEntity(UUID uuid) { |
|
23 |
return CdmStore.getCommonService().find(SpecimenTypeDesignation.class, uuid); |
|
24 |
} |
|
19 |
// @Override
|
|
20 |
// protected SpecimenTypeDesignation getEntity(UUID uuid) {
|
|
21 |
// return CdmStore.getCommonService().find(SpecimenTypeDesignation.class, uuid);
|
|
22 |
// }
|
|
25 | 23 |
|
26 | 24 |
@Override |
27 | 25 |
protected void open(SpecimenTypeDesignation entity, Shell shell, EPartService partService) { |
... | ... | |
33 | 31 |
} |
34 | 32 |
|
35 | 33 |
@Override |
36 |
protected boolean canExecute(SpecimenTypeDesignation entity) {
|
|
34 |
protected boolean canExecute(IStructuredSelection entity) {
|
|
37 | 35 |
return true; |
38 | 36 |
} |
39 | 37 |
|
Also available in: Unified diff
ref #8047: allow multiselect for open distribution editor