-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
137 lines (132 loc) · 5.24 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2016 Abel Gómez.
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:
Abel Gómez ([email protected]) - initial API and implementation
-->
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
name="Publish-Subscribe"
id="io.github.abelgomez.ps.transformer.ui.commands.category">
</category>
<command
name="Generate Petri net"
categoryId="io.github.abelgomez.ps.transformer.ui.commands.category"
id="io.github.abelgomez.ps.transformer.ui.commands.transform">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="io.github.abelgomez.ps.transformer.ui.commands.transform"
class="io.github.abelgomez.ps.transformer.ui.handlers.TransformHandler">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icons/full/obj16/publish-subscribe.png"
id="io.github.abelgomez.ps.transformer.ui.menus.transformer"
label="Publish-Subscribe Tools"
mnemonic="P">
<command
commandId="io.github.abelgomez.ps.transformer.ui.commands.transform"
icon="icons/full/obj16/petri-net.png"
id="io.github.abelgomez.ps.transformer.ui.menus.transform"
label="Generate Petri net..."
mnemonic="G">
</command>
<visibleWhen
checkEnabled="false">
<and>
<count
value="+">
</count>
<iterate>
<or>
<adapt
type="org.eclipse.papyrus.infra.onefile.model.IPapyrusElement">
</adapt>
<and>
<adapt
type="org.eclipse.core.resources.IFile">
</adapt>
<or>
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.extension"
value="notation">
</test>
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.extension"
value="di">
</test>
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.extension"
value="uml">
</test>
</or>
</and>
</or>
</iterate>
</and>
</visibleWhen>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.eclipse.core.resources.IFile"
class="io.github.abelgomez.ps.transformer.ui.adapters.UmlModelAdapterFactory">
<adapter
type="org.eclipse.papyrus.uml.tools.model.UmlModel">
</adapter>
</factory>
<factory
adaptableType="org.eclipse.papyrus.infra.onefile.model.IPapyrusElement"
class="io.github.abelgomez.ps.transformer.ui.adapters.UmlModelAdapterFactory">
<adapter
type="org.eclipse.papyrus.uml.tools.model.UmlModel">
</adapter>
</factory>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="io.github.abelgomez.ps.transformer.ui.preferences.root"
class="io.github.abelgomez.ps.transformer.ui.preferences.UriPreferencePage"
id="io.github.abelgomez.ps.transformer.ui.preferences.uri"
name="Transformation">
</page>
<page
class="io.github.abelgomez.ps.transformer.ui.preferences.RootPreferencePage"
id="io.github.abelgomez.ps.transformer.ui.preferences.root"
name="Publish-Subscribe Tools">
</page>
</extension>
<extension
point="io.github.abelgomez.ps.transformer.uri_provider">
<URI
priority="5"
provider="io.github.abelgomez.ps.transformer.ui.provider.DynamicUriProvider">
</URI>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="io.github.abelgomez.ps.transformer.ui.preferences.PreferenceInitializer">
</initializer>
</extension>
</plugin>