Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 132700

Summary: Warning with propertyTester <test> element
Product: [Eclipse Project] PDE Reporter: Yen Lu <yenlu>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: zina
Version: 3.1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Yen Lu CLA 2006-03-21 11:16:27 EST
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.
Comment 1 Wassim Melhem CLA 2006-03-25 03:27:24 EST
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 ***