Skip to content

Commit 083ad75

Browse files
bastiandoetschacke
authored andcommitted
feat: add ToS and privacy, remove old legacy view [IDE-810] [IDE-713] (#237)
* feat: add ToS and privacy, remove old legacy view * chore: remove legacy view from plugin.xml * chore: update theme id for background colors
1 parent d99852c commit 083ad75

36 files changed

Lines changed: 79 additions & 2649 deletions

plugin/plugin.xml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
name="%category.name"
99
id="io.snyk.eclipse.plugin">
1010
</category>
11-
<view
12-
id="io.snyk.eclipse.plugin.views.SnykView"
13-
name="%view.name"
14-
icon="icons/patch.png"
15-
class="io.snyk.eclipse.plugin.views.SnykView"
16-
category="io.snyk.eclipse.plugin"
17-
inject="true">
18-
</view>
1911
<view
2012
id="io.snyk.eclipse.plugin.views.snyktoolview"
2113
name="%toolView.name"
@@ -28,14 +20,12 @@
2820
<extension point="org.eclipse.ui.perspectiveExtensions">
2921
<perspectiveExtension
3022
targetID="org.eclipse.jdt.ui.JavaPerspective">
31-
<view
32-
id="io.snyk.eclipse.plugin.views.SnykView"
33-
relative="org.eclipse.ui.views.ProblemView"
34-
relationship="right"
35-
ratio="0.5">
23+
<view
24+
id="io.snyk.eclipse.plugin.views.snyktoolview"
25+
ratio="0.5"
26+
relative="org.eclipse.ui.views.ProblemView"
27+
relationship="right">
3628
</view>
37-
<!-- <view id="io.snyk.eclipse.plugin.views.snyktoolview" ratio="0.5">
38-
</view> -->
3929
</perspectiveExtension>
4030
</extension>
4131
<extension point="org.eclipse.help.contexts">

plugin/src/main/java/io/snyk/eclipse/plugin/SnykStartup.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020
import org.eclipse.ui.IStartup;
2121
import org.eclipse.ui.IWorkbench;
2222
import org.eclipse.ui.IWorkbenchPage;
23-
import org.eclipse.ui.IWorkbenchWindow;
2423
import org.eclipse.ui.PartInitException;
2524
import org.eclipse.ui.PlatformUI;
2625

2726
import io.snyk.eclipse.plugin.properties.preferences.Preferences;
2827
import io.snyk.eclipse.plugin.utils.SnykLogger;
29-
import io.snyk.eclipse.plugin.views.SnykView;
3028
import io.snyk.eclipse.plugin.views.snyktoolview.ISnykToolView;
3129
import io.snyk.eclipse.plugin.views.snyktoolview.SnykToolView;
3230
import io.snyk.eclipse.plugin.wizards.SnykWizard;
@@ -38,16 +36,12 @@
3836

3937
public class SnykStartup implements IStartup {
4038
private static LsRuntimeEnvironment runtimeEnvironment;
41-
private SnykView snykView = null;
4239
private static SnykToolView snykToolView = null;
4340
private static boolean downloading = true;
4441
private static ILog logger;
4542

46-
private static SnykStartup instance;
47-
4843
@Override
4944
public void earlyStartup() {
50-
instance = this;
5145
if (logger == null) {
5246
logger = Platform.getLog(getClass());
5347
}
@@ -98,26 +92,6 @@ private void startLanguageServer() {
9892
initJob.schedule();
9993
}
10094

101-
public static SnykView getSnykView() {
102-
if (instance.snykView == null) {
103-
IWorkbench workbench = PlatformUI.getWorkbench();
104-
105-
workbench.getDisplay().syncExec(() -> {
106-
IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();
107-
108-
if (workbenchWindow != null) {
109-
try {
110-
instance.snykView = SnykView.getInstance();
111-
} catch (PartInitException partInitException) {
112-
logError(partInitException);
113-
}
114-
}
115-
});
116-
}
117-
118-
return instance.snykView;
119-
}
120-
12195
public static ISnykToolView getView() {
12296
IWorkbench workbench = PlatformUI.getWorkbench();
12397

plugin/src/main/java/io/snyk/eclipse/plugin/domain/ContentError.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

plugin/src/main/java/io/snyk/eclipse/plugin/domain/LatestReleaseInfo.java

Lines changed: 0 additions & 89 deletions
This file was deleted.

plugin/src/main/java/io/snyk/eclipse/plugin/domain/MonitorResult.java

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)