Revision 884aefac
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForIdentifiableEntityE4.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler; |
2 | 2 |
|
3 |
import java.util.UUID; |
|
4 |
|
|
5 | 3 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
4 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
6 | 5 |
import org.eclipse.swt.widgets.Shell; |
7 | 6 |
|
8 | 7 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
... | ... | |
15 | 14 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorUtil; |
16 | 15 |
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput; |
17 | 16 |
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4; |
18 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
19 | 17 |
|
20 | 18 |
public class OpenBulkEditorForIdentifiableEntityE4 extends DefaultOpenHandlerBaseE4<IdentifiableEntity>{ |
21 | 19 |
|
22 | 20 |
/** |
23 | 21 |
* {@inheritDoc} |
24 | 22 |
*/ |
25 |
@Override |
|
26 |
protected IdentifiableEntity getEntity(UUID uuid) { |
|
27 |
return CdmStore.getCommonService().find(IdentifiableEntity.class, uuid); |
|
28 |
} |
|
23 |
// @Override
|
|
24 |
// protected IdentifiableEntity getEntity(UUID uuid) {
|
|
25 |
// return CdmStore.getCommonService().find(IdentifiableEntity.class, uuid);
|
|
26 |
// }
|
|
29 | 27 |
|
30 | 28 |
/** |
31 | 29 |
* {@inheritDoc} |
... | ... | |
40 | 38 |
* {@inheritDoc} |
41 | 39 |
*/ |
42 | 40 |
@Override |
43 |
protected boolean canExecute(IdentifiableEntity entity) {
|
|
41 |
protected boolean canExecute(IStructuredSelection entity) {
|
|
44 | 42 |
return entity instanceof Reference |
45 | 43 |
|| entity instanceof TaxonName |
46 | 44 |
|| entity instanceof AgentBase |
Also available in: Unified diff
ref #8047: allow multiselect for open distribution editor