[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: "Invalid Menu Extension (Path is invalid)" at product execution

kd3725 wrote:
C. BOUDJENNAH wrote:
Hi!
I'm working on a RCP application and when I starts it I have those logs:

Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.configManager Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates Invalid Menu Extension (Path is invalid): org.eclipse.ui.actions.showKeyAssistHandler Invalid Menu Extension (Path is invalid): org.eclipse.ui.edit.text.gotoLastEditPosition
I work with Eclipse 3.1.2. I really don't understand those errors since all the mentionned ids of those logs aren't used in my workspace...
Could somebody please help me???


Thanks by advance!!
I am having the same issue. Can anyone please shed light on this issue? I am trying to build a GEF RCP application based on the Shapes application. I have pasted my errors below (the app runs, but stderr spits out these lines):

Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.configManager
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
Invalid Menu Extension (Path is invalid): org.eclipse.ui.actions.showKeyAssistHandler


I have the latest stable stream builds of Eclipse, GEF

Thanks
Ok, I got it! Here is how to solve this for those who are still encountering this problem.

FIrst, the problem I was having:
-"Invalid Menu Extension" messages output as syserr
-These messages show up on RCP but not when I run as plugin only
I think these are the only symptoms that you need to identify to know if you had the same problem as me.


The solution:
Add the below indicated lines (shown with ">>>" preceding the line) to your ApplicationActionBarAdvisor or whatever extends ActionBarAdvisor in your case. This added code is added to whatever code you may already have in place (doesn't replace it. Just add these indicated lines in to your fillMenuBar function)


protected void fillMenuBar(IMenuManager menuBar)
{
MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
>>> MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);


        menuBar.add(fileMenu);
>>>  menuBar.add(helpMenu);

        // NOTE: you can add to Help menu but that is optional
>>>  helpMenu.add(aboutAction);
    }


The reason (my reason, at least):
I think including one of the jars required for including org.eclipse.ui.ide adds 'software updates' stuff and 'key assist...' stuff. It adds this to your help menu, and when you don't have one set up, it complains to syserr. So all I have done is put in the code for including a help menu in the menu bar. That seemed to work.


I would like to know if this is addressed in 3.2 as the RCP tutorial suggests, and until then, is there a way to turn it off? Are there any other similar peculiarities that I should know about that I may encounter later?

Thanks,
kd3