| Summary: | Warning with propertyTester <test> element | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Yen Lu <yenlu> |
| Component: | UI | Assignee: | 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: | |||
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.