|
37 | 37 | <!-- |
38 | 38 | <view |
39 | 39 | id="io.snyk.eclipse.plugin.views.snyktoolview" |
40 | | - relative="org.eclipse.ui.views.ProblemView" |
41 | | - relationship="right" |
42 | 40 | ratio="0.5"> |
43 | 41 | </view> |
44 | 42 | --> |
|
65 | 63 | defaultHandler="io.snyk.eclipse.plugin.views.ScanWorkspaceMenuHandler" |
66 | 64 | id="io.snyk.eclipse.plugin.commands.snykWorkspaceScan" |
67 | 65 | name="%scanWorkspace.name"> |
| 66 | + </command> |
| 67 | + <command |
| 68 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.StopScanHandler" |
| 69 | + id="io.snyk.eclipse.plugin.commands.snykStopScan" |
| 70 | + name="Stop Scan"> |
| 71 | + </command> |
| 72 | + <command |
| 73 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.ClearCacheHandler" |
| 74 | + id="io.snyk.eclipse.plugin.commands.snykEmptyScanResults" |
| 75 | + name="Clear Cache"> |
68 | 76 | </command> |
69 | 77 | <command |
70 | 78 | id="io.snyk.eclipse.plugin.properties.preferencespage" |
|
97 | 105 | defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.EnableOssProductHandler"> |
98 | 106 | </command> |
99 | 107 | <command |
100 | | - id="io.snyk.eclipse.plugin.commands.enableCode" |
| 108 | + id="io.snyk.eclipse.plugin.commands.enableCodeSecurity" |
101 | 109 | name="Code Security" |
102 | | - defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.EnableCodeProductHandler"> |
| 110 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.EnableCodeSecurityProductHandler"> |
| 111 | + </command> |
| 112 | + <command |
| 113 | + id="io.snyk.eclipse.plugin.commands.enableCodeQuality" |
| 114 | + name="Code Quality" |
| 115 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.EnableCodeQualityProductHandler"> |
103 | 116 | </command> |
104 | 117 | <command |
105 | 118 | id="io.snyk.eclipse.plugin.commands.enableIAC" |
|
117 | 130 | defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.CollapseTreeHandler"> |
118 | 131 | </command> |
119 | 132 | <command |
120 | | - defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.providers.ViewMenuHandler" |
121 | | - id="io.snyk.eclipse.plugin.commands.viewmenu" |
122 | | - name="Show View Menu"> |
| 133 | + id="io.snyk.eclipse.plugin.commands.snykFilterAllIssues" |
| 134 | + name="All Issues" |
| 135 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterDeltaAllIssuesHandler"> |
123 | 136 | </command> |
124 | 137 | <command |
125 | | - id="io.snyk.eclipse.plugin.commands.snykFilterDelta" |
126 | | - name="Delta findings" |
127 | | - defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterDeltaHandler"> |
| 138 | + id="io.snyk.eclipse.plugin.commands.snykFilterNetNewIssues" |
| 139 | + name="Net New Issues" |
| 140 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterIgnoresOpenIssuesHandler"> |
128 | 141 | </command> |
129 | 142 | <command |
130 | | - id="io.snyk.eclipse.plugin.commands.snykHideIgnored" |
131 | | - name="Hide Ignored"> |
| 143 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterDeltaOpenIssuesHandler" |
| 144 | + id="io.snyk.eclipse.plugin.commands.snykHideIgnored" |
| 145 | + name="Open Issues"> |
132 | 146 | </command> |
133 | 147 | <command |
134 | | - id="io.snyk.eclipse.plugin.commands.snykShowIgnored" |
135 | | - name="Show Ignored"> |
| 148 | + defaultHandler="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterIgnoresIgnoredIssuesHandler" |
| 149 | + id="io.snyk.eclipse.plugin.commands.snykShowIgnored" |
| 150 | + name="Ignored Issues"> |
136 | 151 | </command> |
137 | 152 | </extension> |
138 | 153 | <extension point="org.eclipse.ui.menus"> |
|
214 | 229 | </command> |
215 | 230 | <command |
216 | 231 | commandId="io.snyk.eclipse.plugin.commands.snykEmptyScanResults" |
217 | | - icon="platform:/plugin/org.eclipse.ui/icons/full/elcl16/trash.png" |
| 232 | + icon="platform:/plugin/org.eclipse.ui.console/icons/full/clcl16/clear_co.png" |
218 | 233 | style="push" |
219 | 234 | tooltip="Empty Scan Results Cache"> |
220 | 235 | </command> |
|
247 | 262 | style="push" |
248 | 263 | tooltip="Low Severity"> |
249 | 264 | </command> |
250 | | - <command |
251 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterDelta" |
252 | | - icon="platform:/plugin/org.eclipse.jdt.ui/icons/full/elcl16/exclusion_filter_attrib.png" |
253 | | - style="push" |
254 | | - tooltip="Delta findings"> |
255 | | - </command> |
256 | | - <!-- Add a separator --> |
257 | 265 | <separator |
258 | | - name="FilterSeparator" |
| 266 | + name="io.snyk.eclipse.plugin.filter" |
259 | 267 | visible="true"> |
260 | 268 | </separator> |
261 | | - <!-- Add a separator --> |
262 | | - </menuContribution> |
263 | | - <menuContribution |
264 | | - allPopups="false" |
265 | | - locationURI="menu:io.snyk.eclipse.plugin.views.snyktoolview"> |
266 | 269 | <command |
267 | 270 | commandId="io.snyk.eclipse.plugin.properties.preferencespage" |
268 | 271 | icon="platform:/plugin/org.eclipse.jdt.debug.ui/icons/full/elcl16/thread_view.gif" |
269 | 272 | style="push" |
270 | 273 | tooltip="Open Snyk Preferences"> |
271 | 274 | </command> |
272 | | - <separator |
273 | | - name="io.snyk.eclipse.plugin.filter" |
274 | | - visible="true"> |
275 | | - </separator> |
276 | | - <!-- Add a separator --> |
277 | | - <separator |
278 | | - name="RunScanSeparator" |
279 | | - visible="true"> |
280 | | - </separator> |
281 | | - <command |
282 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterCritical" |
283 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/severity-critical.png" |
284 | | - style="push" |
285 | | - tooltip="Critical Severity"> |
286 | | - </command> |
287 | | - <command |
288 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterHigh" |
289 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/severity-high.png" |
290 | | - style="push" |
291 | | - tooltip="High Severity"> |
| 275 | + </menuContribution> |
| 276 | + <menuContribution |
| 277 | + allPopups="false" |
| 278 | + locationURI="menu:io.snyk.eclipse.plugin.views.snyktoolview"> |
| 279 | + <menu id="io.snyk.eclipse.plugin.views.snyktoolview.filterProductTypeMenu" |
| 280 | + label="Filter Product Type"> |
| 281 | + <command |
| 282 | + commandId="io.snyk.eclipse.plugin.commands.enableOSS" |
| 283 | + icon="platform:/plugin/io.snyk.eclipse.plugin/icons/oss.png" |
| 284 | + style="push" |
| 285 | + tooltip="Enable/disable OSS scans"> |
292 | 286 | </command> |
293 | 287 | <command |
294 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterMedium" |
295 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/severity-medium.png" |
296 | | - style="push" |
297 | | - tooltip="Medium Severity"> |
| 288 | + commandId="io.snyk.eclipse.plugin.commands.enableCodeSecurity" |
| 289 | + icon="icons/code.png" |
| 290 | + style="push" |
| 291 | + tooltip="Enable/disable Code scans"> |
298 | 292 | </command> |
299 | | - <command |
300 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterLow" |
301 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/severity-low.png" |
302 | | - style="push" |
303 | | - tooltip="Low Severity"> |
| 293 | + <command |
| 294 | + commandId="io.snyk.eclipse.plugin.commands.enableCodeQuality" |
| 295 | + icon="icons/code.png" |
| 296 | + style="push" |
| 297 | + tooltip="Enable/disable Code scans"> |
304 | 298 | </command> |
305 | | - <!-- Add a separator --> |
306 | | - <separator |
307 | | - name="FilterSeparator" |
308 | | - visible="true"> |
309 | | - </separator> |
310 | | - <!-- Add a separator --> |
311 | 299 | <command |
312 | | - commandId="io.snyk.eclipse.plugin.commands.snykFilterDelta" |
313 | | - icon="platform:/plugin/org.eclipse.jdt.ui/icons/full/elcl16/exclusion_filter_attrib.png" |
| 300 | + commandId="io.snyk.eclipse.plugin.commands.enableIAC" |
| 301 | + icon="platform:/plugin/io.snyk.eclipse.plugin/icons/iac.png" |
314 | 302 | style="push" |
315 | | - tooltip="Delta findings"> |
| 303 | + tooltip="Enable/disable IAC scans"> |
316 | 304 | </command> |
| 305 | + </menu> |
| 306 | + <menu id="io.snyk.eclipse.plugin.views.snyktoolview.filterIgnoreMenu" |
| 307 | + label="Filter Ignores"> |
317 | 308 | <command |
318 | 309 | commandId="io.snyk.eclipse.plugin.commands.snykHideIgnored" |
319 | 310 | icon="platform:/plugin/org.eclipse.jdt.ui/icons/full/elcl16/hide_ignored.png" |
|
326 | 317 | style="push" |
327 | 318 | tooltip="Show Ignored"> |
328 | 319 | </command> |
329 | | - <separator |
330 | | - name="ProductChooserSeparator" |
331 | | - visible="true"> |
332 | | - </separator> |
333 | | - <command |
334 | | - commandId="io.snyk.eclipse.plugin.commands.enableOSS" |
335 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/oss.png" |
336 | | - style="push" |
337 | | - tooltip="Enable/disable OSS scans"> |
338 | | - </command> |
339 | | - <command |
340 | | - commandId="io.snyk.eclipse.plugin.commands.enableCode" |
341 | | - icon="icons/code.png" |
342 | | - style="push" |
343 | | - tooltip="Enable/disable Code scans"> |
344 | | - </command> |
345 | | - <command |
346 | | - commandId="io.snyk.eclipse.plugin.commands.enableIAC" |
347 | | - icon="platform:/plugin/io.snyk.eclipse.plugin/icons/iac.png" |
348 | | - style="push" |
349 | | - tooltip="Enable/disable IAC scans"> |
350 | | - </command> |
| 320 | + </menu> |
| 321 | + <menu id="io.snyk.eclipse.plugin.views.snyktoolview.filterDeltaMenu" |
| 322 | + label="Filter Net New Issues"> |
| 323 | + <command |
| 324 | + commandId="io.snyk.eclipse.plugin.commands.snykFilterAllIssues" |
| 325 | + style="push" |
| 326 | + tooltip="Show All Issues"> |
| 327 | + </command> |
| 328 | + <command |
| 329 | + commandId="io.snyk.eclipse.plugin.commands.snykFilterNetNewIssues" |
| 330 | + style="push" |
| 331 | + tooltip="Show Only Net New Issues"> |
| 332 | + </command> |
| 333 | + </menu> |
351 | 334 | </menuContribution> |
352 | 335 | <menuContribution |
353 | 336 | locationURI="popup:io.snyk.eclipse.plugin.views.snyktoolview#PopupTreeMenu"> |
|
513 | 496 | </extension> |
514 | 497 | <extension point="org.eclipse.ui.handlers"> |
515 | 498 | <handler |
516 | | - class="io.snyk.eclipse.plugin.views.snyktoolview.providers.ViewMenuHandler" |
517 | | - commandId="io.snyk.eclipse.plugin.commands.viewmenu"> |
518 | | - </handler> |
519 | | - <handler |
520 | | - class="io.snyk.eclipse.plugin.views.snyktoolview.handlers.ShowIgnoredHandler" |
| 499 | + class="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterIgnoresIgnoredIssuesHandler" |
521 | 500 | commandId="io.snyk.eclipse.plugin.commands.snykShowIgnored"> |
522 | 501 | </handler> |
523 | 502 | <handler |
524 | | - class="io.snyk.eclipse.plugin.views.snyktoolview.handlers.HideIgnoredHandler" |
| 503 | + class="io.snyk.eclipse.plugin.views.snyktoolview.handlers.FilterDeltaOpenIssuesHandler" |
525 | 504 | commandId="io.snyk.eclipse.plugin.commands.snykHideIgnored"> |
526 | 505 | </handler> |
527 | 506 | </extension> |
|
0 commit comments