File tree Expand file tree Collapse file tree
plugin/src/main/java/io/snyk
eclipse/plugin/views/snyktoolview
languageserver/protocolextension Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 * removed.
5959 */
6060public class SnykToolView extends ViewPart implements ISnykToolView {
61+ public SnykToolView () {
62+ }
6163
6264 /**
6365 * The ID of the view as specified by the extension.
@@ -112,7 +114,7 @@ public void createPartControl(Composite parent) {
112114 browserHandler = new BrowserHandler (browser );
113115 browserHandler .initialize ();
114116 // Set sash weights
115- horizontalSashForm .setWeights (new int [] { 1 , 1 });
117+ horizontalSashForm .setWeights (new int [] { 1 , 2 });
116118
117119 // Add selection listener to the tree
118120 treeViewer .addSelectionChangedListener (new ISelectionChangedListener () {
Original file line number Diff line number Diff line change 9797import io .snyk .languageserver .protocolextension .messageObjects .SnykIsAvailableCliParams ;
9898import io .snyk .languageserver .protocolextension .messageObjects .SnykScanParam ;
9999import io .snyk .languageserver .protocolextension .messageObjects .SnykTrustedFoldersParams ;
100+ import io .snyk .languageserver .protocolextension .messageObjects .SummaryPanelParams ;
100101import io .snyk .languageserver .protocolextension .messageObjects .scanResults .Issue ;
101102
102103@ SuppressWarnings ("restriction" )
@@ -383,8 +384,8 @@ public void snykScan(SnykScanParam param) {
383384
384385 // TODO what data is returned in the SNYK_SCAN_SUMMARY?
385386 @ JsonNotification (value = LsConstants .SNYK_SCAN_SUMMARY )
386- public void updateSummaryPanel (String summary ) {
387- this .toolView .refreshSummary (summary );
387+ public void updateSummaryPanel (SummaryPanelParams summary ) {
388+ this .toolView .refreshSummary (summary . getSummary () );
388389 }
389390
390391 @ JsonNotification (value = LsConstants .SNYK_FOLDER_CONFIG )
Original file line number Diff line number Diff line change 1+ package io .snyk .languageserver .protocolextension .messageObjects ;
2+
3+ public class SummaryPanelParams {
4+ private String summary ;
5+
6+ public String getSummary () {
7+ return summary ;
8+ }
9+
10+ public void setSummary (String summary ) {
11+ this .summary = summary ;
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments