Revision 884aefac
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/handler/OpenDerivativeEditorForGatheringEvent.java | ||
---|---|---|
6 | 6 |
import java.util.UUID; |
7 | 7 |
|
8 | 8 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
9 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
9 | 10 |
import org.eclipse.swt.widgets.Shell; |
10 | 11 |
|
11 |
import eu.etaxonomy.cdm.api.service.IEventBaseService; |
|
12 | 12 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
13 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
|
14 |
import eu.etaxonomy.cdm.model.common.ICdmBase; |
|
15 | 13 |
import eu.etaxonomy.cdm.model.occurrence.FieldUnit; |
16 | 14 |
import eu.etaxonomy.cdm.model.occurrence.GatheringEvent; |
17 | 15 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
... | ... | |
25 | 23 |
|
26 | 24 |
protected static final String OPEN_DERIVATIVE_EDITOR_FOR_TAXON_NODE_COULD_NOT_OPEN = Messages.OpenDerivativeEditorForTaxonNode_COULD_NOT_OPEN; |
27 | 25 |
|
28 |
@Override |
|
29 |
protected GatheringEvent getEntity(UUID uuid) { |
|
30 |
ICdmBase load = CdmStore.getService(IEventBaseService.class).load(uuid); |
|
31 |
return HibernateProxyHelper.deproxy(load, GatheringEvent.class ); |
|
32 |
} |
|
26 |
// @Override
|
|
27 |
// protected GatheringEvent getEntity(UUID uuid) {
|
|
28 |
// ICdmBase load = CdmStore.getService(IEventBaseService.class).load(uuid);
|
|
29 |
// return HibernateProxyHelper.deproxy(load, GatheringEvent.class );
|
|
30 |
// }
|
|
33 | 31 |
|
34 | 32 |
@Override |
35 | 33 |
protected void open(GatheringEvent entity, Shell shell, EPartService partService) { |
... | ... | |
44 | 42 |
* {@inheritDoc} |
45 | 43 |
*/ |
46 | 44 |
@Override |
47 |
protected boolean canExecute(GatheringEvent entity) {
|
|
45 |
protected boolean canExecute(IStructuredSelection entity) {
|
|
48 | 46 |
return true; |
49 | 47 |
} |
50 | 48 |
|
Also available in: Unified diff
ref #8047: allow multiselect for open distribution editor