Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Error: Unknown expression element objectClass > enablement > objectContribution : org.eclipse.
Error: Unknown expression element objectClass > enablement > objectContribution : org.eclipse. [message #331333] Tue, 02 September 2008 10:17 Go to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Hi All,

I'm having a problem with an popupmenu enablement expression. I believe
the syntax is right -- it was created using the plugin.xml Extensions
wizard, however an error is produced at runtime.

What I've got is this:

<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="com.broadcom.cdt.gprof.ui.LoadGmon"
objectClass="org.eclipse.core.resources.IResource">
<action
class="com.broadcom.cdt.gprof.ui.actions.LoadGmonAction"
enablesFor="+"
id="com.broadcom.cdt.gprof.ui.newAction"
label="Load Selected Gmon"
menubarPath="com.broadcom.cdt.gprof.ui.menu1/group1">
</action>
<enablement>
<objectClass
name="org.eclipse.core.resources.IFile">
</objectClass></enablement>
</objectContribution>
...

Now if I change the <enablement> -> <visibility> it works as expected.
With the <enablement> tag I get the following exception:

org.eclipse.core.runtime.CoreException: Unknown expression element
objectClass > enablement > objectContribution :
org.eclipse.ui.popupMenus @ com.broadcom.cdt.gprof.ui
at
org.eclipse.core.expressions.ExpressionConverter.processChil dren(ExpressionConverter.java:128)
at
org.eclipse.core.expressions.ElementHandler.processChildren( ElementHandler.java:104)
at
org.eclipse.core.internal.expressions.StandardElementHandler .create(StandardElementHandler.java:64)
at
org.eclipse.core.expressions.ExpressionConverter.perform(Exp ressionConverter.java:90)
at
org.eclipse.ui.internal.ObjectActionContributor$ObjectContri bution.setEnablementTest(ObjectActionContributor.java:341)
at
org.eclipse.ui.internal.ObjectActionContributor.readElement( ObjectActionContributor.java:276)
at
org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:144)
at
org.eclipse.ui.internal.registry.RegistryReader.readElementC hildren(RegistryReader.java:133)
at
org.eclipse.ui.internal.ObjectActionContributor.readConfigEl ement(ObjectActionContributor.java:251)
at
org.eclipse.ui.internal.ObjectActionContributor.isApplicable To(ObjectActionContributor.java:217)
at
org.eclipse.ui.internal.ObjectContributorManager.isApplicabl eTo(ObjectContributorManager.java:303)
at
org.eclipse.ui.internal.ObjectActionContributorManager.contr ibuteObjectActions(ObjectActionContributorManager.java:83)
at
org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(P opupMenuExtender.java:261)
at
org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Po pupMenuExtender.java:337)
at
org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan ager.java:335)



Any ideas?

Cheers,

James
Re: Error: Unknown expression element objectClass > enablement > objectContribution : org.ecli [message #331347 is a reply to message #331333] Tue, 02 September 2008 22:18 Go to previous message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Given that the issue appears and disappears if I use visibility instead,
I've filed a bug for the issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=246017

Cheers,

James
Previous Topic:Shutdown eclipse with an exit status
Next Topic:Plugin.xml not translated!
Goto Forum:
  


Current Time: Sat Oct 19 22:47:53 GMT 2024

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

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

Back to the top