Bug 273424 - [expressions] operator="or" does not work for org.eclipse.core.expressions.definitions.
Summary: [expressions] operator="or" does not work for org.eclipse.core.expressions.de...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-23 09:02 EDT by Paul Slauenwhite CLA
Modified: 2019-09-06 15:35 EDT (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 Paul Slauenwhite CLA 2009-04-23 09:02:13 EDT
operator="or" does not work for org.eclipse.core.expressions.definitions.

Recently, we found a problem with one of our org.eclipse.core.expressions.definitions where the operator="or" attribute on the <iterate> attribute does not work the same as the <or> element:

<extension point="org.eclipse.core.expressions.definitions">

		<definition id="correct">
				<with variable="selection">
		    	<iterate>
		      	<or>
	          	<instanceof value="org.eclipse.hyades.test.ui.navigator.DefaultTestSuiteProxyNode"/>
	            <instanceof value="org.eclipse.hyades.test.ui.internal.navigator.proxy.DefaultTestCaseProxyNode"/>
	         	</or>
			  	</iterate>
			</with>
	</definition>

	<definition id="incorrect">
		<with variable="selection">
			<iterate operator="or">
	    	<instanceof value="org.eclipse.hyades.test.ui.navigator.DefaultTestSuiteProxyNode"/>
	      <instanceof value="org.eclipse.hyades.test.ui.internal.navigator.proxy.DefaultTestCaseProxyNode"/>
			</iterate>
		</with>
	</definition>
</extension>
Comment 1 Paul Slauenwhite CLA 2009-04-23 09:03:39 EDT
Note, operator="and" works the same as <and>.
Comment 2 Paul Webster CLA 2009-04-23 10:54:41 EDT
The operator "and/or" applies to the how the results of the iterations are combined, not the sub-elements of the iterate expression.

The children are combined using <and>, and the result of each iteration is combined using the operator.

I can update the docs, it really isn't that clear.

PW
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:35:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.