Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 68bb32f42dcd5b4ef44cc8392cf0658f8ea4401c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Copyright (c) 2005, 2006 IBM Corporation and others.
     All rights reserved. This program and the accompanying materials
     are made available under the terms of the Eclipse Public License v1.0
     which accompanies this distribution, and is available at
     http://www.eclipse.org/legal/epl-v10.html
    
     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>
    <subitem label="New SubItem"/>
    
  </item>
</cheatsheet>

Back to the top