-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.xml
More file actions
186 lines (174 loc) · 6.37 KB
/
plugin.xml
File metadata and controls
186 lines (174 loc) · 6.37 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.views">
<category
name="Robusta"
id="%RobustaMenuName%">
</category>
<view
name="Exception Code Smell Report"
icon="icons/reports.ico"
category="%RobustaMenuName%"
class="ntut.csie.csdet.report.ui.EHSmellReportViewer"
id="ntut.csie.csdet.report.ui.EHSmellReportView">
</view>
</extension>
<!-- Builder and Nautre-->
<extension
id="ntut.csie.rleht.builder.RLBuilder"
name="RLMethodBuilder"
point="org.eclipse.core.resources.builders">
<builder hasNature="true">
<run class="ntut.csie.rleht.builder.RLBuilder"/>
</builder>
</extension>
<extension
id="ntut.csie.rleht.builder.RLNature"
name="RLNature"
point="org.eclipse.core.resources.natures">
<runtime>
<run class="ntut.csie.rleht.builder.RLNature"/>
</runtime>
<builder id="ntut.csie.rleht.builder.RLBuilder"/>
</extension>
<!-- pop menu 右鍵加RL Builder and nature-->
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
id="Robusta.contribution1"
nameFilter="*"
objectClass="org.eclipse.core.resources.IProject">
<filter
name="open"
value="true">
</filter>
<menu
icon="icons/robusta_logo_square_R.jpg"
id="Robusta.menu"
label="Robusta"
path="additions">
<separator name="group">
</separator>
</menu>
<action
class="ntut.csie.robusta.agile.exception.EnableRLAnnotation"
enablesFor="+"
id="Robusta.addAgileExceptionToProjLib"
label="Enable RL Annotation"
menubarPath="Robusta.menu/group">
</action>
<action
class="ntut.csie.rleht.builder.ToggleNatureAction"
enablesFor="+"
id="Robusta.removeRLNatureAction"
label="Remove Marker"
menubarPath="Robusta.menu/group">
</action>
<action
class="ntut.csie.rleht.builder.ToggleNatureAction"
enablesFor="+"
id="Robusta.addRLNatureAction"
label="Detect Smells"
menubarPath="Robusta.menu/group">
</action>
</objectContribution>
</extension>
<!-- extend problem view for RL annotation-->
<extension
id="ntut.csie.rleht.builder.RLProblem"
name="RLProblem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<super type="org.eclipse.core.resources.textmarker"/>
<persistent value="false"/>
</extension>
<!-- extend problem view for bad smell marker-->
<extension
id="ntut.csie.robusta.marker.BSProblem"
name="BSProblem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<super type="org.eclipse.core.resources.textmarker"/>
<persistent value="true"/>
</extension>
<!-- marker的quick fix-->
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="ntut.csie.rleht.builder.RLQuickFixer"
markerType="ntut.csie.rleht.builder.RLProblem"/>
<markerResolutionGenerator
class="ntut.csie.rleht.builder.RLQuickFixer"
markerType="ntut.csie.robusta.marker.BSProblem"/>
</extension>
<!-- Define Annotation for inappropriate statement coloring -->
<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification"
id="ntut.csie.robusta.inappropriateAnnotation"
name="InappropriateAnnotation">
<specification
annotationType="ntut.csie.robusta.inappropriateAnnotation"
label="InappropriateAnnotation"
icon=""
overviewRulerPreferenceKey="clruler"
overviewRulerPreferenceValue="true"
colorPreferenceKey="clcolor"
colorPreferenceValue="255,255,0"
highlightPreferenceKey="inappropriateAnnotationHighlight"
highlightPreferenceValue ="true"
textPreferenceKey="cltext"
textPreferenceValue="true"
verticalRulerPreferenceKey="clvertical"
verticalRulerPreferenceValue="true"
textStylePreferenceKey="clstyle"
textStylePreferenceValue="BOX">
</specification>
</extension>
<!-- Link inappropriateAnnotation to our bad smell marker -->
<!-- name = the annotationType attribute of the annotation that will be linked-->
<!-- markerType = the id attribute of the marker that will be linked -->
<extension point="org.eclipse.ui.editors.annotationTypes">
<type
name="ntut.csie.robusta.inappropriateAnnotation"
markerType="ntut.csie.rleht.builder.RLProblem"
markerSeverity="0">
</type>
</extension>
<!-- property page-->
<extension
point="org.eclipse.ui.preferencePages">
<page
class="ntut.csie.rleht.preferences.PreferencePage"
id="ntut.csie.rleht.preferences.PreferencePage"
name="Robusta Filter">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="ntut.csie.rleht.preferences.PreferenceInitializer">
</initializer>
</extension>
<!-- EH Smell detect property Settings-->
<extension
point="org.eclipse.ui.propertyPages">
<page
class="ntut.csie.csdet.views.CSPropertyPage"
id="CodeSmellDetectingSettings"
name="Robusta Detecting Settings">
<enabledWhen>
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.jdt.core.javanature">
</test>
</adapt>
</enabledWhen>
</page>
</extension>
<!-- STAND ALONE (HEADLESS) extension will be injected here AUTOMATICALLY when build by ANT (xmltask) -->
</plugin>