| <?xml version="1.0" encoding="UTF-8" ?> |
| <cheatsheet title="Java Pattern Demo"> |
| |
| <intro |
| href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm"> |
| <description> |
| Welcome to the Pattern cheat sheet. |
| This cheat sheet will help you to build a sample application using patterns. |
| </description> |
| </intro> |
| |
| <item |
| title="Select a pattern"> |
| <action |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.LaunchPatternSelectionDialogAction"/> |
| <description> |
| Launch the wizard to begin. You can select a pattern to create. There |
| are a few different patterns that you can try out, follow the steps in the |
| cheat sheet to help guide you through building the patterns. |
| </description> |
| </item> |
| |
| <item |
| title="Customize your pattern"> |
| <description> |
| Now that you have chosen the pattern that you would like to create, customize your options. |
| </description> |
| <perform-when condition="${pattern}"> |
| <action |
| when="Factory" |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.FactoryCustomizeAction"/> |
| <action |
| when="Singleton" |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.SingletonCustomizeAction"/> |
| <action |
| when="Visitor" |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.VisitorCustomizeAction"/> |
| </perform-when> |
| </item> |
| |
| <item |
| href="/org.eclipse.jdt.doc.user/tasks/tasks-12.htm" |
| title="Create the Java project that will contain your pattern code"> |
| <action |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.OpenNewJavaProjectWizardWithNameAction"/> |
| <description> |
| Continue by creating your java project. |
| </description> |
| </item> |
| |
| <item |
| href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm" |
| title="Create the Java classes for your pattern"> |
| <description> |
| Now create each of the java classes that are required for your pattern. |
| You already specified some things about them in step 2, now customize |
| them if you wish, or just create them. |
| </description> |
| <repeated-subitem values="${files}"> |
| <subitem label="Create class ${this}"> |
| <action |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.OpenClassNameFilledAction" |
| param1="${this}" |
| param2="${project}"/> |
| </subitem> |
| </repeated-subitem> |
| </item> |
| |
| <item |
| href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm" |
| title="Generate a test class for your pattern"> |
| <action |
| pluginId="org.eclipse.ui.tests.cheatsheets" |
| class="org.eclipse.ui.examples.cheatsheets.pattern.actions.OpenClassNameFilledAction" |
| param1="TestPattern" |
| param2="${project}"/> |
| <description> |
| Create a class to test your pattern. |
| </description> |
| </item> |
| |
| <item |
| href="/org.eclipse.jdt.doc.user/gettingStarted/qs-12.htm" |
| title="Run the test"> |
| <description> |
| Select your test class, and select the run as application option in the |
| toolbar to test it. When you are finished you can indicate that you have finished |
| by pressing the completed button. Hope you enjoyed using this new cheat sheet! |
| </description> |
| </item> |
| |
| </cheatsheet> |
| |