forked from nomagic-com/com.nomagic.magicdraw.classpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
422 lines (420 loc) · 20.9 KB
/
plugin.xml
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.jdt.core.classpathContainerInitializer">
<classpathContainerInitializer
id="com.nomagic.magicdraw.CLASSPATH_LIB_CONTAINER"
class="com.nomagic.magicdraw.classpath.MDClasspathContainerInitializer"/>
</extension>
<extension point="org.eclipse.jdt.ui.classpathContainerPage">
<classpathContainerPage
id="com.nomagic.magicdraw.CLASSPATH_LIB_CONTAINER"
name="MagicDraw Classpath Container"
class="com.nomagic.magicdraw.classpath.MDClasspathContainerPage"/>
</extension>
<extension point="org.eclipse.jdt.core.classpathVariableInitializer">
<classpathVariableInitializer
class="com.nomagic.magicdraw.classpath.MDVariableInitializer"
readOnly="false"
variable="MD"/>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
class="com.nomagic.magicdraw.classpath.preferences.MDPreferencePage"
id="com.nomagic.magicdraw.classpath.preferences.MDPreferencePage"
name="MagicDraw Installation">
</page>
</extension>
<extension point="org.eclipse.core.resources.natures"
id="com.nomagic.magicdraw.classpath.DocGenScriptProjectNature"
name="MagicDraw DocGen Script Project Nature">
<runtime>
<run class="com.nomagic.magicdraw.classpath.DocGenScriptProjectNature"/>
</runtime>
</extension>
<extension point="org.eclipse.core.resources.natures"
id="com.nomagic.magicdraw.classpath.MDKScriptProjectNature"
name="JPL MagicDraw mdk.scripts Project Nature">
<runtime>
<run class="com.nomagic.magicdraw.classpath.MDKScriptProjectNature"/>
</runtime>
</extension>
<extension point="org.eclipse.core.resources.natures"
id="com.nomagic.magicdraw.classpath.MagicDrawPluginProjectNature"
name="JPL MagicDraw Plugin Project Nature">
<runtime>
<run class="com.nomagic.magicdraw.classpath.MagicDrawPluginProjectNature"/>
</runtime>
</extension>
<extension point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="com.nomagic.magicdraw.classpath.MDKProjectPropertyTester"
id="com.nomagic.magicdraw.classpath.MDKProjectPropertyTester"
namespace="com.nomagic.magicdraw.classpath.project"
properties="workspaceProject,workspaceDocGenScriptLocation,workspaceMDKScriptLocation,workspaceMagicDrawPluginLocation,mdDocGenScriptLocation,mdMDKScriptLocation,mdMagicDrawPluginLocation,otherDocGenScriptLocation,otherMDKScriptLocation,otherMagicDrawPluginLocation"
type="org.eclipse.core.resources.IProject">
</propertyTester>
</extension>
<extension point="org.eclipse.ui.commands">
<category
id="com.nomagic.magicdraw.classpath.category"
name="JPL MagicDraw Commands">
</category>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Add MagicDraw DocGen Script Project Nature"
id="com.nomagic.magicdraw.classpath.project.AddDocGenScriptNatureCommand"
name="Add MagicDraw DocGen Script Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Remove MagicDraw DocGen Script Project Nature"
id="com.nomagic.magicdraw.classpath.project.RemoveDocGenScriptNatureCommand"
name="Remove MagicDraw DocGen Script Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Add MagicDraw MDK Script Project Nature"
id="com.nomagic.magicdraw.classpath.project.AddMDKScriptNatureCommand"
name="Add MagicDraw MDK Script Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Remove MagicDraw MDK Script Project Nature"
id="com.nomagic.magicdraw.classpath.project.RemoveMDKScriptNatureCommand"
name="Remove MagicDraw MDK Script Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Add MagicDraw Plugin Project Nature"
id="com.nomagic.magicdraw.classpath.project.AddMagicDrawPluginNatureCommand"
name="Add MagicDraw Plugin Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Remove MagicDraw Plugin Project Nature"
id="com.nomagic.magicdraw.classpath.project.RemoveMagicDrawPluginNatureCommand"
name="Remove MagicDraw Plugin Project Nature">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Move project to MagicDraw's installation DocGenScripts folder"
id="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationDocGenScriptsFolder"
name="Move project to MagicDraw's installation DocGenScripts folder">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Move project to MagicDraw's installation mdk.scripts folder"
id="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMDKScriptsFolder"
name="Move project to MagicDraw's installation mdk.scripts folder">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Move project to MagicDraw's installation plugins folder"
id="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMagicDrawPluginsFolder"
name="Move project to MagicDraw's installation plugins folder">
</command>
<command
categoryId="com.nomagic.magicdraw.classpath.category"
description="Move project back to the default Eclipse Workspace location"
id="com.nomagic.magicdraw.classpath.MDKProject.moveToDefaultWorkspaceLocation"
name="Move project back to the default Eclipse Workspace location">
</command>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
class="com.nomagic.magicdraw.classpath.handlers.AddDocGenScriptNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.AddDocGenScriptNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.RemoveDocGenScriptNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.RemoveDocGenScriptNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.AddMDKScriptNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.AddMDKScriptNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.RemoveMDKScriptNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.RemoveMDKScriptNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.AddMagicDrawPluginNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.AddMagicDrawPluginNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.RemoveMagicDrawPluginNatureActionHandler"
commandId="com.nomagic.magicdraw.classpath.project.RemoveMagicDrawPluginNatureCommand">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.MoveToMDInstallationDocGenScriptsFolderHandler"
commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationDocGenScriptsFolder">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.MoveToMDInstallationMDKScriptsFolderHandler"
commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMDKScriptsFolder">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.MoveToMDInstallationMagicDrawPluginsFolderHandler"
commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMagicDrawPluginsFolder">
</handler>
<handler
class="com.nomagic.magicdraw.classpath.handlers.MoveToDefaultWorkspaceLocationHandler"
commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToDefaultWorkspaceLocation">
</handler>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="com.nomagic.magicdraw.classpath.DocGenScriptProject">
<iterate ifEmpty="false" operator="or">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.projectNature"
value="com.nomagic.magicdraw.classpath.DocGenProjectNature">
</test>
</adapt>
</iterate>
</definition>
<definition id="com.nomagic.magicdraw.classpath.MDKScriptProject">
<iterate ifEmpty="false" operator="or">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.projectNature"
value="com.nomagic.magicdraw.classpath.MDKScriptProjectNature">
</test>
</adapt>
</iterate>
</definition>
<definition id="com.nomagic.magicdraw.classpath.MagicDrawPluginProject">
<iterate ifEmpty="false" operator="or">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.projectNature"
value="com.nomagic.magicdraw.classpath.MagicDrawPluginProjectNature">
</test>
</adapt>
</iterate>
</definition>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any">
<menu label="MDK">
<command commandId="com.nomagic.magicdraw.classpath.project.AddDocGenScriptNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceProject">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.project.RemoveDocGenScriptNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceDocGenScriptLocation"/>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.project.AddMDKScriptNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceProject">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.project.RemoveMDKScriptNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceMDKScriptLocation"/>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.project.AddMagicDrawPluginNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceProject">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.project.RemoveMagicDrawPluginNatureCommand">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceMagicDrawPluginLocation"/>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationDocGenScriptsFolder">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<or>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceDocGenScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherDocGenScriptLocation"/>
</or>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMDKScriptsFolder">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<or>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceMDKScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherMDKScriptLocation"/>
</or>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMagicDrawPluginsFolder">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<or>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.workspaceMagicDrawPluginLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherMagicDrawPluginLocation"/>
</or>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="com.nomagic.magicdraw.classpath.MDKProject.moveToDefaultWorkspaceLocation">
<visibleWhen checkEnabled="true">
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.core.resources.IProject">
<or>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.mdDocGenScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherDocGenScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.mdMDKScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherMDKScriptLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.mdMagicDrawPluginLocation"/>
<test
forcePluginActivation="true"
property="com.nomagic.magicdraw.classpath.project.otherMagicDrawPluginLocation"/>
</or>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.actionSets">
<actionSet
id="com.nomagic.magicdraw.classpath.MDProjectActionSet"
label="JPL MagicDraw Project Actions">
<menu
id="org.eclipse.jdt.ui.refactoring.menu"
label="%Refactoring.menu.label"
path="edit">
<separator name="Refactoring.menu.label= Refac&tor
reorgGroup">
</separator>
</menu>
<action
definitionId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationDocGenScriptsFolder"
id="com.nomagic.magicdraw.classpath.actions.Move"
label="Move JPL MagicDraw DocGen Script Project to MD's install.root/DocGenUserScripts folder"
menubarPath="org.eclipse.jdt.ui.refactoring.menu/reorgGroup"
class="com.nomagic.magicdraw.classpath.actions.MoveToMDInstallationDocGenScriptsFolderDelegate"
style="push">
</action>
<action
definitionId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMDKScriptsFolder"
id="com.nomagic.magicdraw.classpath.actions.Move"
label="Move JPL MagicDraw Script Project to MD's install.root/mdk.scripts folder"
menubarPath="org.eclipse.jdt.ui.refactoring.menu/reorgGroup"
class="com.nomagic.magicdraw.classpath.actions.MoveToMDInstallationMDKScriptsFolderDelegate"
style="push">
</action>
<action
definitionId="com.nomagic.magicdraw.classpath.MDKProject.moveToMDInstallationMagicDrawPluginsFolder"
id="com.nomagic.magicdraw.classpath.actions.Move"
label="Move JPL MagicDraw Script Project to MD's install.root/plugins folder"
menubarPath="org.eclipse.jdt.ui.refactoring.menu/reorgGroup"
class="com.nomagic.magicdraw.classpath.actions.MoveToMDInstallationMagicDrawPluginsFolderDelegate"
style="push">
</action>
<action
definitionId="com.nomagic.magicdraw.classpath.MDKProject.moveToDefaultWorkspaceLocation"
id="com.nomagic.magicdraw.classpath.actions.Move"
label="Move JPL MagicDraw Script Project to the default Eclipse Workspace location"
menubarPath="org.eclipse.jdt.ui.refactoring.menu/reorgGroup"
class="com.nomagic.magicdraw.classpath.actions.MoveToDefaultWorkspaceLocationDelegate"
style="push">
</action>
</actionSet>
</extension>
<extension point="org.eclipse.ui.startup">
<startup class="com.nomagic.magicdraw.classpath.ActivationTriggerDummy"/>
</extension>
</plugin>