|
52 | 52 | publicclassJxBrowserManager {
|
53 | 53 | privatestaticJxBrowserManagermanager;
|
54 | 54 |
|
55 |
| -privatestaticStringgetPluginLoaderDir() { |
56 |
| -try { |
57 |
| -finalApplicationInfoinfo =ApplicationInfo.getInstance(); |
58 |
| -assertinfo !=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 |
| -elseif (Objects.equals(info.getMajorVersion(),"2020")) { |
68 |
| -return"flutter-intellij"; |
69 |
| - } |
70 |
| - } |
71 |
| -catch (NullPointerExceptionex) { |
72 |
| -// ignored; unit tests |
73 |
| - } |
74 |
| -return"flutter-idea"; |
75 |
| - } |
76 |
| - |
77 | 55 | @NotNull
|
78 | 56 | protectedstaticfinalStringDOWNLOAD_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 | privatestaticfinalAtomicReference<JxBrowserStatus>status =newAtomicReference<>(JxBrowserStatus.NOT_INSTALLED);
|
82 | 60 | @NotNull
|
|