Revision d0adff9a
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForIdentifiableEntityE4.java | ||
---|---|---|
7 | 7 |
import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState; |
8 | 8 |
import org.eclipse.swt.widgets.Shell; |
9 | 9 |
|
10 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
|
10 | 11 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
12 |
import eu.etaxonomy.cdm.model.media.Media; |
|
13 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
14 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
|
15 |
import eu.etaxonomy.cdm.model.reference.Reference; |
|
16 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
|
11 | 17 |
import eu.etaxonomy.taxeditor.bulkeditor.AppModelId; |
12 | 18 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4; |
13 | 19 |
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput; |
... | ... | |
40 | 46 |
*/ |
41 | 47 |
@Override |
42 | 48 |
protected boolean canExecute(IdentifiableEntity entity) { |
43 |
return true; |
|
49 |
return entity instanceof Reference |
|
50 |
|| entity instanceof TaxonName |
|
51 |
|| entity instanceof AgentBase |
|
52 |
|| entity instanceof SpecimenOrObservationBase |
|
53 |
|| entity instanceof TaxonBase |
|
54 |
|| entity instanceof Media |
|
55 |
; |
|
44 | 56 |
} |
45 | 57 |
|
46 | 58 |
} |
Also available in: Unified diff
ref #6908 Disable "Open in bulk editor" for PK