Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 263205 - [Contributions] Warnings in enablement expression in objectContribution
Summary: [Contributions] Warnings in enablement expression in objectContribution
Status: RESOLVED DUPLICATE of bug 111778
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 04:08 EST by Tomasz Zarna CLA
Modified: 2009-02-03 10:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2009-02-02 04:08:27 EST
I20090129-1200

I quickly went through warnings in Team/CVS/Compare components (there are thousands of them, so I just scratched the surface). I got particularly interested in a group of them: warnings in enablement expression in objectContribution.

All of them look more less like this:

<objectContribution objectClass="..." adaptable="true" id="...">
   <enablement><adapt type="..."><test.../></adapt></enablement>
...
</objectContribution>

Warnings say that:
"Element 'adapt' is not legal as a child of 'enablement'."
"A minimum of 1 'and' elements must be specified."
"A minimum of 1 'or' elements must be specified."
"A minimum of 1 'not' elements must be specified."
"A minimum of 1 'systemProperty' elements must be specified."
"A minimum of 1 'and' elements must be specified."
and couple more...

But according to Expression Definitions reference[1] there is nothing wrong about it.

<!ELEMENT enablement (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate , reference)*>

Is there a better way to define the enablement expression so we can get rid of the warnings?

[1] http://help.eclipse.org/stable/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_core_expressions_definitions.html
Comment 1 Paul Webster CLA 2009-02-03 10:19:07 EST
And of course, no fix for it :-)

PW


*** This bug has been marked as a duplicate of bug 111778 ***