Community
Participate
Working Groups
I defined a property tester and then tried to use it to create a condition for enabling a pop up menu action as follows: <extension point="org.eclipse.ui.popupMenus"> <objectContribution ... > <action ... /> <enablement> <test ... /> <== Warning here </enablement> </objectContribution> </extension> The <test ... /> element is flagged with the warning: Element 'test' is not legal as a child of element 'enablement'. However, the code works. Documentation on the <enablement> element is very unclear. The link takes me to a description that would say this is illegal but lower down the page, another form is given showing the <test> element as being legal. The org.eclipse.debug.ui plugin also uses this type of declaration and these are also flagged with warnings. Finally, the problem is also reproducible on Eclipse 3.2M5a.
The false warning is a dup of bug 77043 If you find the documentation for <enablement> unclear, open a separate bug report against Platform/Doc *** This bug has been marked as a duplicate of 77043 ***