8
8
import com .intellij .execution .process .ProcessOutput ;
9
9
import com .intellij .ide .actions .ShowSettingsUtilImpl ;
10
10
import com .intellij .ide .actionsOnSave .ActionsOnSaveConfigurable ;
11
- import com .intellij .ide .browsers .BrowserLauncher ;
12
11
import com .intellij .notification .Notification ;
13
12
import com .intellij .notification .NotificationType ;
14
13
import com .intellij .notification .Notifications ;
30
29
import com .intellij .ui .DocumentAdapter ;
31
30
import com .intellij .ui .components .ActionLink ;
32
31
import com .intellij .ui .components .JBLabel ;
33
- import com .intellij .ui .components .labels .LinkLabel ;
34
32
import com .intellij .util .PlatformIcons ;
35
33
import icons .FlutterIcons ;
36
34
import io .flutter .*;
48
46
import javax .swing .event .DocumentEvent ;
49
47
import javax .swing .text .JTextComponent ;
50
48
import java .awt .datatransfer .StringSelection ;
51
- import java .net .URI ;
52
- import java .net .URISyntaxException ;
53
49
import java .util .List ;
54
50
import java .util .concurrent .Semaphore ;
55
51
@@ -70,12 +66,8 @@ public class FlutterSettingsConfigurable implements SearchableConfigurable {
70
66
private JCheckBox myOrganizeImportsOnSaveCheckBox ;
71
67
private JCheckBox myShowStructuredErrors ;
72
68
private JCheckBox myIncludeAllStackTraces ;
73
- private JCheckBox mySyncAndroidLibrariesCheckBox ;
74
- private JCheckBox myEnableHotUiCheckBox ;
75
69
private JCheckBox myEnableBazelHotRestartCheckBox ;
76
70
77
- private JCheckBox myShowAllRunConfigurationsInContextCheckBox ;
78
-
79
71
private JCheckBox myEnableJcefBrowserCheckBox ;
80
72
81
73
private JCheckBox myShowBuildMethodGuides ;
@@ -143,13 +135,6 @@ protected void textChanged(@NotNull final DocumentEvent e) {
143
135
myShowStructuredErrors .addChangeListener (
144
136
(e ) -> myIncludeAllStackTraces .setEnabled (myShowStructuredErrors .isSelected ()));
145
137
146
- // There are other experiments so it is alright to show the experiments
147
- // panel even if the syncAndroidLibraries experiment is hidden.
148
- // If there are only experiments available on Android studio then add back
149
- // the following statement:
150
- // experimentsPanel.setVisible(FlutterUtils.isAndroidStudio());
151
- mySyncAndroidLibrariesCheckBox .setVisible (FlutterUtils .isAndroidStudio ());
152
-
153
138
myEnableBazelHotRestartCheckBox .setVisible (WorkspaceCache .getInstance (myProject ).isBazel ());
154
139
}
155
140
@@ -228,14 +213,6 @@ public boolean isModified() {
228
213
return true ;
229
214
}
230
215
231
- if (settings .isSyncingAndroidLibraries () != mySyncAndroidLibrariesCheckBox .isSelected ()) {
232
- return true ;
233
- }
234
-
235
- if (settings .isEnableHotUi () != myEnableHotUiCheckBox .isSelected ()) {
236
- return true ;
237
- }
238
-
239
216
if (settings .isEnableBazelHotRestart () != myEnableBazelHotRestartCheckBox .isSelected ()) {
240
217
return true ;
241
218
}
@@ -248,11 +225,6 @@ public boolean isModified() {
248
225
return true ;
249
226
}
250
227
251
- //noinspection RedundantIfStatement
252
- if (settings .showAllRunConfigurationsInContext () != myShowAllRunConfigurationsInContextCheckBox .isSelected ()) {
253
- return true ;
254
- }
255
-
256
228
return settings .isEnableJcefBrowser () != myEnableJcefBrowserCheckBox .isSelected ();
257
229
}
258
230
@@ -303,11 +275,8 @@ public void apply() throws ConfigurationException {
303
275
settings .setOpenInspectorOnAppLaunch (myOpenInspectorOnAppLaunchCheckBox .isSelected ());
304
276
settings .setPerserveLogsDuringHotReloadAndRestart (myEnableLogsPreserveAfterHotReloadOrRestart .isSelected ());
305
277
settings .setVerboseLogging (myEnableVerboseLoggingCheckBox .isSelected ());
306
- settings .setSyncingAndroidLibraries (mySyncAndroidLibrariesCheckBox .isSelected ());
307
- settings .setEnableHotUi (myEnableHotUiCheckBox .isSelected ());
308
278
settings .setEnableBazelHotRestart (myEnableBazelHotRestartCheckBox .isSelected ());
309
279
settings .setAllowTestsInSourcesRoot (myAllowTestsInSourcesRoot .isSelected ());
310
- settings .setShowAllRunConfigurationsInContext (myShowAllRunConfigurationsInContextCheckBox .isSelected ());
311
280
settings .setFontPackages (myFontPackagesTextArea .getText ());
312
281
settings .setEnableJcefBrowser (myEnableJcefBrowserCheckBox .isSelected ());
313
282
@@ -368,17 +337,13 @@ public void reset() {
368
337
myOpenInspectorOnAppLaunchCheckBox .setSelected (settings .isOpenInspectorOnAppLaunch ());
369
338
myEnableLogsPreserveAfterHotReloadOrRestart .setSelected (settings .isPerserveLogsDuringHotReloadAndRestart ());
370
339
myEnableVerboseLoggingCheckBox .setSelected (settings .isVerboseLogging ());
371
- mySyncAndroidLibrariesCheckBox .setSelected (settings .isSyncingAndroidLibraries ());
372
-
373
- myEnableHotUiCheckBox .setSelected (settings .isEnableHotUi ());
374
340
375
341
myEnableBazelHotRestartCheckBox .setSelected (settings .isEnableBazelHotRestart ());
376
342
myAllowTestsInSourcesRoot .setSelected (settings .isAllowTestsInSourcesRoot ());
377
343
378
344
myOrganizeImportsOnSaveCheckBox .setEnabled (myFormatCodeOnSaveCheckBox .isSelected ());
379
345
myIncludeAllStackTraces .setEnabled (myShowStructuredErrors .isSelected ());
380
346
381
- myShowAllRunConfigurationsInContextCheckBox .setSelected (settings .showAllRunConfigurationsInContext ());
382
347
myEnableJcefBrowserCheckBox .setSelected (settings .isEnableJcefBrowser ());
383
348
myFontPackagesTextArea .setText (settings .getFontPackages ());
384
349
}
0 commit comments