Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » MenuService WorkbenchContext/TrimmedWindowImpl( org.eclipse.e4.core.di.InjectionException without precise information)
MenuService WorkbenchContext/TrimmedWindowImpl [message #1830666] Thu, 30 July 2020 15:03 Go to next message
Eclipse UserFriend
Hi
when I run my e4 product, on startup I get the following error message without further information:

MenuService: WorkbenchContext: org.eclipse.e4.core.di.InjectionException: Unable to process "MenuService.myPart": no actual value was found for the argument "MPart".
MenuService: TrimmedWindowImpl (ch.eugster.herakles.app.window.main) Context: org.eclipse.e4.core.di.InjectionException: Unable to process "MenuService.myPart": no actual value was found for the argument "MPart".


I tried to debug to find the problem but without success. What am I doing wrong?
Christian

[Updated on: Thu, 30 July 2020 15:04] by Moderator

Re: MenuService WorkbenchContext/TrimmedWindowImpl [message #1830669 is a reply to message #1830666] Thu, 30 July 2020 16:24 Go to previous message
Eclipse UserFriend
No clue what you are doing wrong, but got some clues where the error comes from.

The error is raised by MenuServiceCreationFunction, this context function is in charge of creating the EMenuService/MenuService. The MenuService has a field 'private MPart myPart' which is being injected. Apparently, you are requesting a EMenuService in a context where no MPart is available. The context that is used is 'WorkbenchContext' which I can imagine that it doesn't have a MPart.

Are you using EMenuService to create menus Controls that are not within a MPart?
Previous Topic:IStatusLineManger
Next Topic:Toolbar not resize after IElementUpdater
Goto Forum:
  


Current Time: Tue Jul 08 20:02:32 EDT 2025

Powered by FUDForum. Page generated in 0.04806 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top