-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
245 lines (226 loc) · 7.83 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="cn.nju.seg.atg.contribution1"
objectClass="org.eclipse.cdt.core.model.IFunctionDeclaration">
<menu
icon="icons/java.ico"
id="cn.nju.seg.atg.plugin.popupmenu"
label="cn.nju.seg.atg"
path="additions">
<separator name="AtgGroup">
</separator>
</menu>
<action
class="cn.nju.seg.atg.plugin.AtgAction"
enablesFor="1"
icon="icons/coffee.ico"
id="cn.nju.seg.atg.plugin.popupmenu.atg"
label="Generate Test Data"
menubarPath="cn.nju.seg.atg.plugin.popupmenu/AtgGroup">
</action>
<action
class="cn.nju.seg.atg.plugin.CfgAction"
enablesFor="1"
icon="icons/coffee.ico"
id="cn.nju.seg.atg.plugin.popupmenu.cfg"
label="Show Ctrl Flow Graph"
menubarPath="cn.nju.seg.atg.plugin.popupmenu/AtgGroup">
</action>
</objectContribution>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
<type
markerSeverity="2"
markerType="org.eclipse.core.resources.problemmarker"
name="cn.nju.seg.atg.TextEditor.AtgNode"
super="org.eclipse.ui.workbench.texteditor.info">
</type>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification
annotationType="cn.nju.seg.atg.TextEditor.AtgNode"
colorPreferenceKey="hostColorKey"
colorPreferenceValue="51,153, 204"
contributesToHeader="true"
highlightPreferenceKey="hostHightlightKey"
highlightPreferenceValue="true"
icon="icons/node.gif"
includeOnPreferencePage="true"
isGoToNextNavigationTarget="true"
isGoToNextNavigationTargetKey="Host_isOccurrenceGoToNextNavigationTarget"
isGoToPreviousNavigationTarget="true"
isGoToPreviousNavigationTargetKey="Host_isOccurrenceGoToPreviousNavigationTarget"
label="HOST"
overviewRulerPreferenceKey="hostOverviewKey"
overviewRulerPreferenceValue="true"
presentationLayer="4"
quickFixIcon="icons/node.gif"
showInNextPrevDropdownToolbarAction="true"
showInNextPrevDropdownToolbarActionKey="Host_showOccurrenceInNextPrevDropdownToolbarAction"
symbolicIcon="info"
textPreferenceKey="hostTextKey"
textPreferenceValue="true"
textStylePreferenceKey="occurrenceTextStyle"
textStylePreferenceValue="NONE"
verticalRulerPreferenceKey="hostVerticalKey"
verticalRulerPreferenceValue="true">
</specification>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
class="cn.nju.seg.atg.plugin.CfgCEditor"
default="false"
extensions="cfcpp"
icon="icons/sample.gif"
id="cn.nju.seg.atg.plugin.cfgceditor"
name="cfgceditor">
</editor>
</extension>
<extension
point="org.eclipse.ui.views">
<category
name="ATG"
id="ATG">
</category>
<view
name="ATG View"
icon="icons/sample.gif"
category="ATG"
class="cn.nju.seg.atg.plugin.AtgView"
id="cn.nju.seg.atg.plugin.AtgView">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="Atg Cmd Category"
id="cn.nju.seg.atg.commands.category">
</category>
<command
name="Atg Run"
categoryId="cn.nju.seg.atg.commands.category"
id="cn.nju.seg.atg.commands.run">
</command>
<command
name="Atg Stop"
categoryId="cn.nju.seg.atg.commands.category"
id="cn.nju.seg.atg.commands.stop">
</command>
<command
name="Empty Annatations"
categoryId="cn.nju.seg.atg.commands.category"
id="cn.nju.seg.atg.commands.emptyann">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="cn.nju.seg.atg.commands.run"
class="cn.nju.seg.atg.plugin.AtgRunHandler">
<activeWhen>
<with variable="activeEditorId">
<equals value="cn.nju.seg.atg.plugin.cfgceditor" />
</with>
</activeWhen>
</handler>
<handler
commandId="cn.nju.seg.atg.commands.stop"
class="cn.nju.seg.atg.plugin.AtgStopHandler">
<activeWhen>
<with variable="activeEditorId">
<equals value="cn.nju.seg.atg.plugin.cfgceditor" />
</with>
</activeWhen>
</handler>
<handler
commandId="cn.nju.seg.atg.commands.emptyann"
class="cn.nju.seg.atg.plugin.ClearAnnHandler">
<activeWhen>
<with variable="activeEditorId">
<equals value="cn.nju.seg.atg.plugin.cfgceditor" />
</with>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="cn.nju.seg.atg.commands.stop"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+7"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="cn.nju.seg.atg.commands.run"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+6"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
label="A&tg"
mnemonic="T"
id="cn.nju.seg.atg.menus">
<command
commandId="cn.nju.seg.atg.commands.run"
mnemonic="R"
id="cn.nju.seg.atg.menus.run">
</command>
<command
commandId="cn.nju.seg.atg.commands.stop"
mnemonic="S"
id="cn.nju.seg.atg.menus.stop">
</command>
<command
commandId="cn.nju.seg.atg.commands.emptyann"
mnemonic="E"
id="cn.nju.seg.atg.menus.stop">
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="cn.nju.seg.atg.toolbars">
<command
commandId="cn.nju.seg.atg.commands.run"
icon="icons/run.png"
tooltip="Run Atg"
id="cn.nju.seg.atg.toolbars.run">
</command>
<command
commandId="cn.nju.seg.atg.commands.stop"
icon="icons/stop.png"
tooltip="Stop Atg"
id="cn.nju.seg.atg.toolbars.stop">
</command>
</toolbar>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
name="Atg"
class="cn.nju.seg.atg.plugin.AtgPreferencePage"
id="cn.nju.seg.atg.plugin.AtgPreferencePage">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="cn.nju.seg.atg.plugin.AtgPreferenceInitializer">
</initializer>
</extension>
</plugin>