Revision 972ecc88
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenHandlerBaseE4.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import javax.inject.Named; |
6 | 6 |
|
7 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
7 | 8 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
8 | 9 |
import org.eclipse.e4.core.di.annotations.Execute; |
9 | 10 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
... | ... | |
13 | 14 |
|
14 | 15 |
public abstract class DefaultOpenHandlerBaseE4 <T> { |
15 | 16 |
|
17 |
protected IEclipseContext context; |
|
18 |
|
|
16 | 19 |
@Execute |
17 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, MHandledMenuItem menuItem, EPartService partService) { |
|
20 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, MHandledMenuItem menuItem, EPartService partService, |
|
21 |
IEclipseContext context) { |
|
22 |
this.context = context; |
|
23 |
|
|
18 | 24 |
String commandId = menuItem.getCommand().getElementId(); |
19 | 25 |
Object transientData = menuItem.getTransientData().get(commandId+".uuid"); |
20 | 26 |
if(transientData instanceof UUID){ |
Also available in: Unified diff
ref #6913 Remove org.eclipse.ui dependency from AbstractUtility