"Invalid Menu Extension (Path is invalid)" at product execution [message #300738] |
Thu, 16 March 2006 11:46  |
Eclipse User |
|
|
|
Originally posted by: cboudjennah.hotmail.com
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!!
|
|
|
|
|
|
|
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300956 is a reply to message #300875] |
Mon, 20 March 2006 17:38   |
Eclipse User |
|
|
|
Originally posted by: kd3725.gmail.com
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
|
|
|
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #301449 is a reply to message #300738] |
Thu, 30 March 2006 20:29  |
Eclipse User |
|
|
|
Originally posted by: bennyflint.gmail.com
I had this problem and discovered that it had to do with extending EditorPart in my RCP. What I found out is that the org.eclipse.ui.editors plugin that I was including in my application defines an action (id: 'org.eclipse.ui.edit.text.gotoLastEditPosition'; label: '%goToLastEditPosition.label') under an actionSet extension (id: 'org.eclipse.ui.edit.text.actionSet.navigation'; label: '%textEditorNavigationActionSet.label'). The menuBarPath for the action is "navigate/", meaning that the action expects a Navigate menu in your RCP. This seems silly to me, but that's the way it is.
So, one way to get rid of the error is to create a "Navigate" menu in your RCP. I'm sure there is a far better way to fix the problem, but I'm a relative noob and haven't taken the time to figure it out yet. I hope someone with a little more expertise can use this information to offer a better solution.
-Ben
|
|
|
Powered by
FUDForum. Page generated in 0.08503 seconds