File tree Expand file tree Collapse file tree
plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ public void selectionChanged(SelectionChangedEvent event) {
9696 }
9797 }
9898 });
99-
100- makeActions ();
10199 }
102100
103101 private void registerTreeContextMeny (Composite parent ) {
@@ -142,27 +140,6 @@ private void initBrowserText() {
142140 + " <p>\n " + snykWarningText + "</body>\n " + "</html>" );
143141 }
144142
145- private void makeActions () {
146- openPrefPage = new Action () {
147-
148- @ Override
149- public void run () {
150- PreferenceDialog pref = PreferencesUtil .createPreferenceDialogOn (getShell (),
151- "io.snyk.eclipse.plugin.properties.preferencespage" , null , null );
152- if (pref != null )
153- pref .open ();
154- }
155- };
156- openPrefPage .setText ("Preferences" );
157- }
158-
159- private static Shell getShell () {
160- var activeWorkbenchWindow = PlatformUI .getWorkbench ().getActiveWorkbenchWindow ();
161- if (activeWorkbenchWindow == null )
162- return SHELL ;
163- return activeWorkbenchWindow .getShell ();
164- }
165-
166143 @ Override
167144 public void setFocus () {
168145 treeViewer .getControl ().setFocus ();
You can’t perform that action at this time.
0 commit comments