File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 52
52
public class JxBrowserManager {
53
53
private static JxBrowserManager manager ;
54
54
55
- private static String getPluginLoaderDir () {
56
- try {
57
- final ApplicationInfo info = ApplicationInfo .getInstance ();
58
- assert info != null ;
59
- if (Objects .equals (info .getMajorVersion (), "2021" )) {
60
- if (Objects .equals (info .getMinorVersion (), "3" )) {
61
- return "flutter-idea" ;
62
- }
63
- else {
64
- return "flutter-intellij" ;
65
- }
66
- }
67
- else if (Objects .equals (info .getMajorVersion (), "2020" )) {
68
- return "flutter-intellij" ;
69
- }
70
- }
71
- catch (NullPointerException ex ) {
72
- // ignored; unit tests
73
- }
74
- return "flutter-idea" ;
75
- }
76
-
77
55
@ NotNull
78
56
protected static final String DOWNLOAD_PATH =
79
- PathManager .getPluginsPath () + File .separatorChar + getPluginLoaderDir () + File .separatorChar + "jxbrowser" ;
57
+ PathManager .getPluginsPath () + File .separatorChar + "flutter-intellij" + File .separatorChar + "jxbrowser" ;
80
58
@ NotNull
81
59
private static final AtomicReference <JxBrowserStatus > status = new AtomicReference <>(JxBrowserStatus .NOT_INSTALLED );
82
60
@ NotNull
You can’t perform that action at this time.
0 commit comments