Revision 940e1f09
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForTaxonNodeHandler.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler; |
2 | 10 |
|
3 | 11 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
... | ... | |
12 | 20 |
|
13 | 21 |
public class OpenBulkEditorForTaxonNodeHandler extends DefaultOpenHandlerBaseE4<TaxonNodeDto> { |
14 | 22 |
|
15 |
// @Override |
|
16 |
// protected TaxonNode getEntity(UUID uuid) { |
|
17 |
// return CdmStore.getService(ITaxonNodeService.class).load(uuid); |
|
18 |
// } |
|
19 |
|
|
20 | 23 |
@Override |
21 | 24 |
protected void open(TaxonNodeDto entity, Shell shell, EPartService partService) { |
22 |
AbstractBulkEditorInput input = TaxonEditorInput.getInstance(); |
|
25 |
AbstractBulkEditorInput<?> input = TaxonEditorInput.getInstance();
|
|
23 | 26 |
input.setEntityUuid(entity.getTaxonUuid()); |
24 | 27 |
BulkEditorUtil.openBulkEditor(input, modelService, partService, application); |
25 | 28 |
} |
26 | 29 |
|
27 |
/** |
|
28 |
* {@inheritDoc} |
|
29 |
*/ |
|
30 | 30 |
@Override |
31 | 31 |
protected boolean canExecute(Object selection) { |
32 | 32 |
if (((IStructuredSelection)selection).getFirstElement() instanceof TaxonNodeDto && ((IStructuredSelection)selection).size() == 1){ |
... | ... | |
39 | 39 |
protected String getPartId() { |
40 | 40 |
return eu.etaxonomy.taxeditor.bulkeditor.AppModelId.PARTDESCRIPTOR_BULKEDITOR_EDITOR; |
41 | 41 |
} |
42 |
|
|
43 |
} |
|
42 |
} |
Also available in: Unified diff
cleanup