I have an e4 app with perspective and Parts in PartStack. I add a Handler to a part and inject this part in the handler class. Running the app I get an exception:
I am not yet very close to injection, so i appreciate any hint, Thank you!
org.eclipse.e4.core.di.InjectionException: Unable to process "ResetHandler.part": no actual value was found for the argument "MPart".
If I inject the part in the execute method like this:
it does work.
public void execute(MPart part)
Solution: It seems that MPart is only available if the handler is assigned directly within an MPart in the application.e4xmi
[Updated on: Tue, 20 March 2018 20:55]
Report message to a moderator