-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
executable file
·345 lines (318 loc) · 11.6 KB
/
plugin.xml
File metadata and controls
executable file
·345 lines (318 loc) · 11.6 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<!--extension
id="javaeditor"
point="org.eclipse.ui.editors">
<editor
name="Featurer Java Editor"
default="true"
icon="$nl$/icons/jcu_obj.gif"
contributorClass="org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditorActionContributor"
class="cideplus.ui.editor.FeaturerCompilationUnitEditor"
symbolicFontName="org.eclipse.jdt.ui.editors.textfont"
id="cideplus.FeaturerCompilationUnitEditor"
extensions="java">
</editor>
</extension-->
<!-- Extension para registrar listener do editor -->
<extension
point="org.eclipse.ui.startup">
<startup
class="cideplus.ui.editor.EditorListener">
</startup>
</extension>
<!-- Popup menu do editor -->
<extension
point="org.eclipse.ui.menus"
id="cideplus.ui.editor.menuMarkFeature">
<menuContribution
locationURI="popup:org.eclipse.jdt.ui.CompilationUnitEditor.EditorContext?after=additions">
<!--
locationURI="popup:cideplus.FeaturerCompilationUnitEditor.EditorContext?after=additions">
-->
<menu
id="cideplus.editor.features.menu"
label="Features">
<dynamic
class="cideplus.ui.editor.popup.MenuContentProvider"
id="cideplus.menus.dynamicContentProvider" >
</dynamic>
</menu>
</menuContribution>
</extension>
<!-- menu "Features" do workbench -->
<!--
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
label="Features"
mnemonic="F"
id="cideplus.menus.featuresMenu">
<command
commandId="cideplus.commands.toggleLightMode"
id="cideplus.menus.toggleLightModeCommand"
label="Hide Colors"
mnemonic="S"
style="toggle">
</command>
</menu>
</menuContribution>
</extension>
-->
<!-- Command para marcar/desmarcar features pelo editor -->
<extension
point="org.eclipse.ui.commands">
<category
description="Category for commands related to features."
id="cideplus.commands.featuresCategory"
name="Features Category"/>
<command
id="cideplus.commands.markFeature"
name="Mark Feature in Editor"
categoryId= "cideplus.commands.featuresCategory">
<commandParameter
id="cideplus.commands.markFeature.featureIdParameter"
name="Feature ID"
optional="false">
</commandParameter>
<commandParameter
id="cideplus.commands.markFeature.checkedParameter"
name="Feature ID"
optional="false">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="cideplus.commands.handlers.ToggleFeatureHandler"
commandId="cideplus.commands.markFeature">
</handler>
</extension>
<!-- Command para configurar features. -->
<!-- Deve substituir a action definida diretamente no menu. -->
<extension
point="org.eclipse.ui.commands">
<category
id="cideplus.commands.category.configureFeatures"
name="Features Category"/>
<command
id="cideplus.commands.configureFeatures"
name="Configure Features"
categoryId= "cideplus.commands.category.configureFeatures">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="cideplus.commands.handlers.ConfigureFeaturesHandler"
commandId="cideplus.commands.configureFeatures">
</handler>
</extension>
<!-- Command para ligar/desligar o modo "light" -->
<extension
point="org.eclipse.ui.commands">
<category
id="cideplus.commands.category.lightMode"
name="Light Mode Category"/>
<command
id="cideplus.commands.toggleLightMode"
name="Toggle Light Mode"
categoryId= "cideplus.commands.category.lightMode">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="cideplus.commands.handlers.ToggleLightModeHandler"
commandId="cideplus.commands.toggleLightMode">
</handler>
</extension>
<!-- Popup Menu do package explorer -->
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
id="cideplus.contributionConfigureFeatures"
objectClass="org.eclipse.jdt.core.IJavaProject">
<menu
id="cideplus.menuFeatures"
label="Features"
path="additions">
<separator
name="group1">
</separator>
<separator
name="group2">
</separator>
</menu>
<action
class="cideplus.ui.configuration.popup.action.ConfigureFeaturesAction"
enablesFor="1"
id="cideplus.cfAction"
label="Configure Features..."
menubarPath="cideplus.menuFeatures/group1">
</action>
<action
class="cideplus.automation.ColorDetectionAction"
icon="icons/view.gif"
id="vbo.ColorDetection"
label="Automatic Feature Detection"
menubarPath="cideplus.menuFeatures/group1">
</action>
<action
class="cideplus.ui.configuration.popup.action.CleanProjectAction"
enablesFor="1"
id="cideplus.cleanAction"
label="Clean Project"
menubarPath="cideplus.menuFeatures/group2">
</action>
<action
class="cideplus.ui.configuration.popup.action.StatisticsAction"
enablesFor="1"
id="cideplus.actionStatitics"
label="Statitics..."
menubarPath="cideplus.menuFeatures/group2">
</action>
<action
class="cideplus.ui.export.action.ExportProjectAction"
enablesFor="1"
id="cideplus.action.export"
label="Export Project..."
menubarPath="cideplus.menuFeatures/group2">
</action>
<action
class="cideplus.ui.configuration.popup.action.RefreshFeaturesAction"
enablesFor="1"
id="cideplus.refreshFeatures"
label="Refresh Features"
menubarPath="cideplus.menuFeatures/group2">
</action>
<action
class="cideplus.ToggleLightModeAction"
id="cideplus.toggleLightMode"
label="Hide Colors"
style="toggle"
menubarPath="cideplus.menuFeatures/group2">
</action>
</objectContribution>
</extension>
<!-- Marker das features -->
<extension
point="org.eclipse.core.resources.markers"
id="cideplus.markers.featuresMarker"
name="Features Marker">
<super type="org.eclipse.core.resources.textmarker"/>
<persistent value="true"/>
<attribute name="featureId"/>
</extension>
<!-- Declaração da annotation p/ mostrar no editor os markers das features -->
<extension
point="org.eclipse.ui.editors.annotationTypes">
<type
markerSeverity="0"
name="cideplus.ui.editor.featureAnnotation"
markerType="cideplus.markers.featuresMarker">
</type>
</extension>
<!-- Definição da feature annotation -->
<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification"
id="cideplus.ui.featuresAnnotationSpecification"
name="FeaturesAnnotation">
<specification
annotationType="cideplus.ui.editor.featureAnnotation"
colorPreferenceKey="cideplus.annotation.colorPreferenceKey"
colorPreferenceValue="255,0,0"
textPreferenceKey="cideplus.annotation.textPreferenceKey"
textPreferenceValue="false"
highlightPreferenceKey="cideplus.annotation.highlightPreferenceKey"
highlightPreferenceValue="false"
textStylePreferenceKey="cideplus.annotation.textStylePreferenceKey"
textStylePreferenceValue="NONE"
overviewRulerPreferenceKey="cideplus.annotation.overviewRulerPreferenceKey"
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="cideplus.annotation.verticalRulerPreferenceKey"
verticalRulerPreferenceValue="true"
symbolicIcon="info"
label="Features Annotation"
icon="icons/Letter-F-16x16.png"
includeOnPreferencePage="false">
</specification>
</extension>
<!-- AST View -->
<extension
point="org.eclipse.ui.views">
<view
name="Features ASTView"
icon="$nl$/icons/view.gif"
category="org.eclipse.jdt.ui.java"
class="cideplus.ui.astview.ASTView"
id="cideplus.ui.astview.ASTView">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
name="ASTView"
description="Featurer AST View"
categoryId="org.eclipse.ui.category.views"
id="cideplus.ui.astview.ASTView">
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
sequence="M2+M3+Q A"
commandId="cideplus.ui.astview.ASTView"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
<key
platform="carbon"
sequence="M2+M3+Q A"
commandId=""
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
<key
platform="carbon"
sequence="M1+M3+Q A"
commandId="cideplus.ui.astview.ASTView"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective">
<viewShortcut id="cideplus.ui.astview.ASTView"/>
</perspectiveExtension>
<perspectiveExtension targetID="org.eclipse.jdt.ui.JavaBrowsingPerspective">
<viewShortcut id="cideplus.ui.astview.ASTView"/>
</perspectiveExtension>
<perspectiveExtension targetID="org.eclipse.jdt.ui.JavaHierarchyPerspective">
<viewShortcut id="cideplus.ui.astview.ASTView"/>
</perspectiveExtension>
</extension>
<!-- extension para criar uma nova ruler -->
<!--
<extension
point="org.eclipse.ui.workbench.texteditor.rulerColumns">
<column
id="cideplus.editor.rulerColumn"
name="Features New Vertical Ruler"
class="cideplus.ui.editor.FeaturesRulerColumn"
enabled="true"
global="true"
includeInMenu="true">
<targetEditor
id="cideplus.FeaturerCompilationUnitEditor">
</targetEditor>
<placement
gravity="0.5">
<before id="org.eclipse.ui.editors.columns.linenumbers"/>
</placement>
</column>
</extension>
-->
</plugin>