Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b4976532f8319c9efa877f96963b15af94d11a79 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?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>
	<conditional-subitem condition="${pattern}">
		<subitem
			when="Factory"
			label="Customize the Factory Pattern">
			<action
				pluginId="org.eclipse.ui.tests.cheatsheets"
				class="org.eclipse.ui.examples.cheatsheets.pattern.actions.FactoryCustomizeAction"/>
		</subitem>
		<subitem
			when="Singleton"
			label="Customize the Singleton Pattern">
			<action
				pluginId="org.eclipse.ui.tests.cheatsheets"
				class="org.eclipse.ui.examples.cheatsheets.pattern.actions.SingletonCustomizeAction"/>
		</subitem>
		<subitem
			when="Visitor"
			label="Customize the Visitor Pattern">
			<action
				pluginId="org.eclipse.ui.tests.cheatsheets"
				class="org.eclipse.ui.examples.cheatsheets.pattern.actions.VisitorCustomizeAction"/>
		</subitem>
	</conditional-subitem>
	</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>

Back to the top