Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4ee3bbb7a25853e40da46eeed292e95d5eb43ee0 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
   id="org.eclipse.ui.tests.cheatsheets"
   name="Cheat Sheets Test"
   version="3.0"
   provider-name="Eclipse.org"
   class="org.eclipse.ui.tests.cheatsheets.CheatSheetTestPlugin">

   <runtime>
      <library name="cheatsheetTests.jar"/>
   </runtime>
   <requires>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.jdt.ui"/>
      <import plugin="org.eclipse.jdt.core"/>
      <import plugin="org.eclipse.help.appserver"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.ui.cheatsheets"/>
      <import plugin="org.eclipse.ui.forms"/>
      <import plugin="org.eclipse.ui.ide"/>
   </requires>


   <extension
         point="org.eclipse.ui.cheatsheets.cheatSheetItemExtension">
      <itemExtension
            class="org.eclipse.ui.examples.cheatsheets.pattern.actions.ExtensionActionI"
            itemAttribute="actionI">
      </itemExtension>
   </extension>
   <extension
         point="org.eclipse.ui.cheatsheets.cheatSheetItemExtension">
      <itemExtension
            class="org.eclipse.ui.examples.cheatsheets.pattern.actions.ExtensionActionII"
            itemAttribute="actionII">
      </itemExtension>
   </extension>
<!-- Cheat Sheet content extension point!!! -->
   <extension
         point="org.eclipse.ui.cheatsheets.cheatSheetContent">
      <category
            name="Cheat sheet examples - part 1"
            id="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat">
      </category>
      <category
            name="Cheat sheet examples - part 2"
            id="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat2">
      </category>
      <category
            name="Tests"
            id="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat">
      </category>
      <cheatsheet
            name="Hello World"
            category="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat"
            contentFile="cheatsheets/examples/part1/HelloWorld.xml"
            id="org.eclipse.ui.examples.cheatsheets.HelloWorld">
         <description>
            This cheat sheet will guide you through building a hello world Java application and testing it.
            Uses only the basic cheat sheet features.
         </description>
      </cheatsheet>
      <cheatsheet
            name="Hello World With Extensions Icons"
            category="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat"
            contentFile="cheatsheets/examples/part1/HelloWorldWithExtensions.xml"
            id="org.eclipse.ui.examples.cheatsheets.HelloWorldWithExtensions">
         <description>
            This cheat sheet has extra icons next to the help icon using the cheatSheetItemExtension extension point.
         </description>
      </cheatsheet>
      <cheatsheet
            name="Hello World With Subitems"
            category="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat"
            contentFile="cheatsheets/examples/part1/HelloWorldWithSubitems.xml"
            id="org.eclipse.ui.examples.cheatsheets.HelloWorldWithSubitem">
         <description>
            This cheat sheet uses subitems.
         </description>
      </cheatsheet>
      <cheatsheet
            name="Java Patterns"
            category="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat2"
            contentFile="cheatsheets/examples/part2/PatternSheet.xml"
            id="org.eclipse.ui.examples.cheatsheets.PatternSheet"
            listener="org.eclipse.ui.examples.cheatsheets.pattern.listeners.PatternItemListener">
         <description>
            This cheatsheet to demonstrates some of the advanced cheat sheet features,
            including: conditional actions for an item, dynamic sub items,
            		   using the cheatsheet manager to persist data
         </description>
      </cheatsheet>
      <cheatsheet
            name="Java Patterns using Conditional SubItem"
            category="org.eclipse.ui.examples.cheatsheets.cheatSheetsCat2"
            contentFile="cheatsheets/examples/part2/PatternSheetUsingConditionalSubItem.xml"
            id="org.eclipse.ui.examples.cheatsheets.PatternSheetUsingConditionalSubItem"
            listener="org.eclipse.ui.examples.cheatsheets.pattern.listeners.PatternItemListener">
         <description>
            This cheatsheet to demonstrates some of the advanced cheat sheet features,
            including: conditional actions for an item, dynamic sub items,
            		   using the cheatsheet manager to persist data
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Cheat Sheets actions"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestCSActions.xml"
            id="org.eclipse.ui.tests.cheatsheets.cheatsheetsActions">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Parameters"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestParameters.xml"
            id="org.eclipse.ui.tests.cheatsheets.parameters">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Infopop and Help Links"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestInfopop_Help.xml"
            id="org.eclipse.ui.tests.cheatsheets.infopop.help">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing SubItems"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestSubItems.xml"
            id="org.eclipse.ui.tests.cheatsheets.subitems">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Dynamic SubItems"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestDynamicSubItems.xml"
            id="org.eclipse.ui.tests.cheatsheets.dynamic.subitems">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Item Description Formatting"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestDescriptionFormatting.xml"
            id="org.eclipse.ui.tests.cheatsheets.description">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Rational Test1"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/rational/Test1.xml"
            listener="org.eclipse.ui.examples.cheatsheets.pattern.listeners.PatternItemListener"
            id="rational.Test1">
      </cheatsheet>
      <cheatsheet
            name="Rational Test2"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/rational/Test2.xml"
            listener="org.eclipse.ui.examples.cheatsheets.pattern.listeners.PatternItemListener"
            id="rational.Test2">
      </cheatsheet>
      <cheatsheet
            name="Testing Actions"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestActions.xml"
            id="org.eclipse.ui.tests.cheatsheets.actions">
         <description>
            This cheat sheet has items to test the framework
         </description>
      </cheatsheet>
      <cheatsheet
            name="Testing Non-exsting File"
            category="org.eclipse.ui.tests.cheatsheets.cheatSheetsTestCat"
            contentFile="cheatsheets/tests/TestNonExistingFile.xml"
            id="org.eclipse.ui.tests.cheatsheets.nonExistingFile">
      </cheatsheet>
   </extension>

   <extension point="org.eclipse.help.contexts"> 
       <contexts file="contexts.xml"/>
   </extension>

   <extension
         point="org.eclipse.ui.views">
      <category
            name="Cheat Sheets Tests"
            id="org.eclipse.ui.tests.cheatsheets">
      </category>
      <view
            name="CheatSheetViewer Test"
            icon="icons/sample.gif"
            category="org.eclipse.ui.tests.cheatsheets"
            class="org.eclipse.ui.tests.cheatsheets.views.CheatSheetViewerTestView"
            id="org.eclipse.ui.tests.cheatsheets.views.CheatSheetViewerTestView">
      </view>
   </extension>

   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="org.eclipse.core.resources.IFile"
            nameFilter="*.xml"
            id="tests.cheatsheets.contribution1">
         <menu
               label="Test CheatSheet Parsing"
               path="additions"
               id="org.eclipse.ui.tests.cheatsheets.menu">
            <separator
                  name="group1">
            </separator>
         </menu>
         <action
               label="Test Parsing"
               class="org.eclipse.ui.tests.cheatsheets.actions.TestCheatSheetParserAction"
               menubarPath="org.eclipse.ui.tests.cheatsheets.menu/group1"
               enablesFor="+"
               id="org.eclipse.ui.tests.cheatsheets.actions.TestCheatSheetParserAction">
         </action>
      </objectContribution>
   </extension>

   <extension
         point="org.eclipse.ui.actionSets">
      <actionSet
            label="Cheat Sheet Tests Action Set"
            visible="true"
            id="org.eclipse.ui.tests.cheatsheets.actionSet">
         <menu
               label="Cheat Sheet Tests"
               id="cheatSheetTests">
            <separator
                  name="group1">
            </separator>
         </menu>
         <action
               label="Test opening with an invalid id"
               class="org.eclipse.ui.tests.cheatsheets.actions.TestCheatSheetViewerSetInputAction"
               menubarPath="cheatSheetTests/group1"
               id="org.eclipse.ui.tests.cheatsheets.actions.TestCheatSheetViewerSetInputAction">
         </action>
         <action
               label="Start WebApp"
               class="org.eclipse.ui.tests.cheatsheets.actions.TestStartWebApp"
               menubarPath="cheatSheetTests/group1"
               id="org.eclipse.ui.tests.cheatsheets.actions.TestStartWebApp">
         </action>
         <action
               label="Test opening from a URL"
               class="org.eclipse.ui.tests.cheatsheets.actions.TestOpeningURL"
               menubarPath="cheatSheetTests/group1"
               id="org.eclipse.ui.tests.cheatsheets.actions.TestOpeningURL">
         </action>
      </actionSet>
   </extension>

</plugin>

Back to the top