Revision ac730eca
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenHandlerBaseE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2020 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.handler.defaultHandler.e4; |
2 | 10 |
|
3 | 11 |
import javax.inject.Named; |
... | ... | |
20 | 28 |
public abstract class DefaultOpenHandlerBaseE4 <T> { |
21 | 29 |
|
22 | 30 |
protected IEclipseContext context; |
23 |
|
|
24 | 31 |
protected MApplication application; |
25 |
|
|
26 | 32 |
protected EModelService modelService; |
27 | 33 |
|
28 | 34 |
@Execute |
... | ... | |
33 | 39 |
this.modelService = modelService; |
34 | 40 |
this.application = application; |
35 | 41 |
|
36 |
|
|
37 | 42 |
String commandId = menuItem.getCommand().getElementId(); |
38 | 43 |
Object transientData = menuItem.getTransientData().get(commandId+".uuid"); |
39 | 44 |
|
... | ... | |
46 | 51 |
// T entity = getEntity(((UuidAndTitleCache)transientData).getUuid()); |
47 | 52 |
open((T)transientData, shell, partService); |
48 | 53 |
} |
49 |
|
|
50 |
|
|
51 | 54 |
} |
52 | 55 |
|
53 | 56 |
@CanExecute |
... | ... | |
81 | 84 |
protected String getPartId(){ |
82 | 85 |
return null; |
83 | 86 |
} |
84 |
|
|
85 | 87 |
} |
Also available in: Unified diff
cleanup