Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 132700 - Warning with propertyTester <test> element
Summary: Warning with propertyTester <test> element
Status: RESOLVED DUPLICATE of bug 77043
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 11:16 EST by Yen Lu CLA
Modified: 2006-03-25 03:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***