can dynamic menus exist in global menubar? [message #331265] |
Thu, 28 August 2008 13:15  |
Eclipse User |
|
|
|
My apologies if I don't get the terminology correct (first time poster)
but I have a plugin that is lazy-loaded and I want to place a dynamic menu
in the global menubar. The contributionclass that supplies the dynamic
tag is in my plugin.
<menuContribution locationURI="menu:file?after=file.New">
<menu
id="package.Label1"
label="ParentMenu">
<dynamic
class="plugin.package.ContributionItem1"
id="plugin.package.ContributionItem1">
<visibleWhen>
<reference
definitionId="plugin.inMainView">
</reference>
</visibleWhen>
</dynamic>
</menu>
</menuContribution>
I get a runtime error that the class can't be found.
org.eclipse.core.runtime - org.eclipse.ui - 0 - Class load Failure:
'plugin.package.ContributionItem1'
org.eclipse.core.runtime.CoreException: Plug-in plugin was unable to load
class plugin.package.ContributionItem1.
If I make the dynamic a pop up or view specific, it works however I have a
hard requirement that our functionality exists in the global menubar.
Any suggestions?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03637 seconds