blob: b5fe1db1ff505775c3dde69873d2eebb7fa97304 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2006 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<cheatsheet title="Test with two perform-when elements">
<intro>
<description>Test cheat sheet</description>
</intro>
<item title="Select a number">
<description>Select a number between one and three.</description>
<command serialization="org.eclipse.ui.dialogs.openMessageDialog(buttonLabel2=Three,title=Number selection,message=Select a number,buttonLabel0=One ,buttonLabel1=Two)" returns="result"/>
<onCompletion>Result is ${result}</onCompletion>
</item>
<item title="New Item">
<description>Item with two perform when elements</description>
<perform-when condition="${result}">
<command serialization="CommandSerialization" when="One"/>
<action class="action_class" pluginId="action_plugin_id" when="Two"/>
</perform-when>
<perform-when condition="Condition">
<command serialization="CommandSerialization" when="Two"/>
<action class="action_class" pluginId="action_plugin_id" when="Three"/>
</perform-when>
</item>
</cheatsheet>