Skip to content

Commit 72caf42

Browse files
authored
Remove unused experimental settings (#7803)
1 parent 0c530b6 commit 72caf42

File tree

4 files changed

+2
-70
lines changed

4 files changed

+2
-70
lines changed

flutter-idea/src/io/flutter/FlutterBundle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ flutter.androidstudio.open.hide.notification.text=Hide
189189
flutter.androidstudio.open.hide.notification.description=Hide notification until IDE restart
190190

191191
settings.try.out.features.still.under.development=Try out features still under development (a restart may be required)
192-
settings.enable.android.gradle.sync=Enable code completion, navigation, etc. for Java / Kotlin (requires restart to do Gradle build)
193192
settings.report.google.analytics=&Report usage information to Google Analytics
194-
settings.enable.hot.ui=Enable Hot UI (an early preview of property editing in the outline view)
195193
settings.enable.verbose.logging=Enable &verbose logging
196194
settings.format.code.on.save=Format code on save
197195
settings.organize.imports.on.save=Organize imports on save
@@ -202,7 +200,6 @@ settings.enable.bazel.hot.restart=Enable Bazel hot restart (refreshes generated
202200
settings.allow.tests.in.sources=<html>Allow files ending with <b>_test.dart</b> to be recognized as tests
203201
settings.allow.tests.tooltip=The directory must be marked as a sources root, such as <b>lib</b>.
204202
settings.font.packages=Font Packages
205-
settings.show.all.configs=Show all possible run configurations for apps or tests, even if a created configuration already exists
206203
settings.show.all.configs.tooltip=If there is a defined run configuration to watch a specific test and one to just run it, show both.
207204
settings.jcef.browser=Use JCEF browser to show embedded DevTools
208205
settings.jcef.browser.tooltip=JCEF is a browser included in IntelliJ that is an alternative to using JxBrowser for showing embedded DevTools.

flutter-idea/src/io/flutter/sdk/FlutterSearchableOptionContributor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ public class FlutterSearchableOptionContributor extends SearchableOptionContribu
1818
public void processOptions(@NotNull SearchableOptionProcessor processor) {
1919
// Keep these in the same order as FlutterBundle.properties
2020
add(processor, FlutterBundle.message("settings.try.out.features.still.under.development"));
21-
add(processor, FlutterBundle.message("settings.enable.android.gradle.sync"));
2221
// For some reason the word "report" is ignored by the search feature, but the other words work.
2322
add(processor, FlutterBundle.message("settings.report.google.analytics"));
24-
add(processor, FlutterBundle.message("settings.enable.hot.ui"));
2523
add(processor, FlutterBundle.message("settings.enable.verbose.logging"));
2624
add(processor, FlutterBundle.message("settings.format.code.on.save"));
2725
add(processor, FlutterBundle.message("settings.organize.imports.on.save"));
@@ -32,7 +30,6 @@ public void processOptions(@NotNull SearchableOptionProcessor processor) {
3230
add(processor, FlutterBundle.message("settings.allow.tests.in.sources"));
3331
add(processor, FlutterBundle.message("settings.allow.tests.tooltip"));
3432
add(processor, FlutterBundle.message("settings.font.packages"));
35-
add(processor, FlutterBundle.message("settings.show.all.configs"));
3633
add(processor, FlutterBundle.message("settings.show.all.configs.tooltip"));
3734
add(processor, FlutterBundle.message("settings.enable.androi.gradle.sync.tooltip"));
3835
add(processor, FlutterBundle.message("settings.experiments"));

flutter-idea/src/io/flutter/sdk/FlutterSettingsConfigurable.form

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
</grid>
225225
</children>
226226
</grid>
227-
<grid id="23e52" layout-manager="GridLayoutManager" row-count="5" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
227+
<grid id="23e52" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
228228
<margin top="0" left="0" bottom="0" right="0"/>
229229
<constraints>
230230
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
@@ -240,36 +240,9 @@
240240
<text resource-bundle="io/flutter/FlutterBundle" key="settings.try.out.features.still.under.development"/>
241241
</properties>
242242
</component>
243-
<component id="33088" class="javax.swing.JCheckBox" binding="mySyncAndroidLibrariesCheckBox">
244-
<constraints>
245-
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
246-
</constraints>
247-
<properties>
248-
<text resource-bundle="io/flutter/FlutterBundle" key="settings.enable.android.gradle.sync"/>
249-
<toolTipText resource-bundle="io/flutter/FlutterBundle" key="settings.enable.androi.gradle.sync.tooltip"/>
250-
</properties>
251-
</component>
252-
<component id="33088" class="javax.swing.JCheckBox" binding="myEnableHotUiCheckBox">
253-
<constraints>
254-
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
255-
</constraints>
256-
<properties>
257-
<text resource-bundle="io/flutter/FlutterBundle" key="settings.enable.hot.ui"/>
258-
<toolTipText value="Experimental features to graphically edit Flutter build methods."/>
259-
</properties>
260-
</component>
261-
<component id="e902c" class="javax.swing.JCheckBox" binding="myShowAllRunConfigurationsInContextCheckBox">
262-
<constraints>
263-
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
264-
</constraints>
265-
<properties>
266-
<text resource-bundle="io/flutter/FlutterBundle" key="settings.show.all.configs"/>
267-
<toolTipText resource-bundle="io/flutter/FlutterBundle" key="settings.show.all.configs.tooltip"/>
268-
</properties>
269-
</component>
270243
<component id="909bb" class="javax.swing.JCheckBox" binding="myEnableJcefBrowserCheckBox">
271244
<constraints>
272-
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
245+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
273246
</constraints>
274247
<properties>
275248
<text resource-bundle="io/flutter/FlutterBundle" key="settings.jcef.browser"/>

flutter-idea/src/io/flutter/sdk/FlutterSettingsConfigurable.java

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.intellij.execution.process.ProcessOutput;
99
import com.intellij.ide.actions.ShowSettingsUtilImpl;
1010
import com.intellij.ide.actionsOnSave.ActionsOnSaveConfigurable;
11-
import com.intellij.ide.browsers.BrowserLauncher;
1211
import com.intellij.notification.Notification;
1312
import com.intellij.notification.NotificationType;
1413
import com.intellij.notification.Notifications;
@@ -30,7 +29,6 @@
3029
import com.intellij.ui.DocumentAdapter;
3130
import com.intellij.ui.components.ActionLink;
3231
import com.intellij.ui.components.JBLabel;
33-
import com.intellij.ui.components.labels.LinkLabel;
3432
import com.intellij.util.PlatformIcons;
3533
import icons.FlutterIcons;
3634
import io.flutter.*;
@@ -48,8 +46,6 @@
4846
import javax.swing.event.DocumentEvent;
4947
import javax.swing.text.JTextComponent;
5048
import java.awt.datatransfer.StringSelection;
51-
import java.net.URI;
52-
import java.net.URISyntaxException;
5349
import java.util.List;
5450
import java.util.concurrent.Semaphore;
5551

@@ -70,12 +66,8 @@ public class FlutterSettingsConfigurable implements SearchableConfigurable {
7066
private JCheckBox myOrganizeImportsOnSaveCheckBox;
7167
private JCheckBox myShowStructuredErrors;
7268
private JCheckBox myIncludeAllStackTraces;
73-
private JCheckBox mySyncAndroidLibrariesCheckBox;
74-
private JCheckBox myEnableHotUiCheckBox;
7569
private JCheckBox myEnableBazelHotRestartCheckBox;
7670

77-
private JCheckBox myShowAllRunConfigurationsInContextCheckBox;
78-
7971
private JCheckBox myEnableJcefBrowserCheckBox;
8072

8173
private JCheckBox myShowBuildMethodGuides;
@@ -143,13 +135,6 @@ protected void textChanged(@NotNull final DocumentEvent e) {
143135
myShowStructuredErrors.addChangeListener(
144136
(e) -> myIncludeAllStackTraces.setEnabled(myShowStructuredErrors.isSelected()));
145137

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-
153138
myEnableBazelHotRestartCheckBox.setVisible(WorkspaceCache.getInstance(myProject).isBazel());
154139
}
155140

@@ -228,14 +213,6 @@ public boolean isModified() {
228213
return true;
229214
}
230215

231-
if (settings.isSyncingAndroidLibraries() != mySyncAndroidLibrariesCheckBox.isSelected()) {
232-
return true;
233-
}
234-
235-
if (settings.isEnableHotUi() != myEnableHotUiCheckBox.isSelected()) {
236-
return true;
237-
}
238-
239216
if (settings.isEnableBazelHotRestart() != myEnableBazelHotRestartCheckBox.isSelected()) {
240217
return true;
241218
}
@@ -248,11 +225,6 @@ public boolean isModified() {
248225
return true;
249226
}
250227

251-
//noinspection RedundantIfStatement
252-
if (settings.showAllRunConfigurationsInContext() != myShowAllRunConfigurationsInContextCheckBox.isSelected()) {
253-
return true;
254-
}
255-
256228
return settings.isEnableJcefBrowser() != myEnableJcefBrowserCheckBox.isSelected();
257229
}
258230

@@ -303,11 +275,8 @@ public void apply() throws ConfigurationException {
303275
settings.setOpenInspectorOnAppLaunch(myOpenInspectorOnAppLaunchCheckBox.isSelected());
304276
settings.setPerserveLogsDuringHotReloadAndRestart(myEnableLogsPreserveAfterHotReloadOrRestart.isSelected());
305277
settings.setVerboseLogging(myEnableVerboseLoggingCheckBox.isSelected());
306-
settings.setSyncingAndroidLibraries(mySyncAndroidLibrariesCheckBox.isSelected());
307-
settings.setEnableHotUi(myEnableHotUiCheckBox.isSelected());
308278
settings.setEnableBazelHotRestart(myEnableBazelHotRestartCheckBox.isSelected());
309279
settings.setAllowTestsInSourcesRoot(myAllowTestsInSourcesRoot.isSelected());
310-
settings.setShowAllRunConfigurationsInContext(myShowAllRunConfigurationsInContextCheckBox.isSelected());
311280
settings.setFontPackages(myFontPackagesTextArea.getText());
312281
settings.setEnableJcefBrowser(myEnableJcefBrowserCheckBox.isSelected());
313282

@@ -368,17 +337,13 @@ public void reset() {
368337
myOpenInspectorOnAppLaunchCheckBox.setSelected(settings.isOpenInspectorOnAppLaunch());
369338
myEnableLogsPreserveAfterHotReloadOrRestart.setSelected(settings.isPerserveLogsDuringHotReloadAndRestart());
370339
myEnableVerboseLoggingCheckBox.setSelected(settings.isVerboseLogging());
371-
mySyncAndroidLibrariesCheckBox.setSelected(settings.isSyncingAndroidLibraries());
372-
373-
myEnableHotUiCheckBox.setSelected(settings.isEnableHotUi());
374340

375341
myEnableBazelHotRestartCheckBox.setSelected(settings.isEnableBazelHotRestart());
376342
myAllowTestsInSourcesRoot.setSelected(settings.isAllowTestsInSourcesRoot());
377343

378344
myOrganizeImportsOnSaveCheckBox.setEnabled(myFormatCodeOnSaveCheckBox.isSelected());
379345
myIncludeAllStackTraces.setEnabled(myShowStructuredErrors.isSelected());
380346

381-
myShowAllRunConfigurationsInContextCheckBox.setSelected(settings.showAllRunConfigurationsInContext());
382347
myEnableJcefBrowserCheckBox.setSelected(settings.isEnableJcefBrowser());
383348
myFontPackagesTextArea.setText(settings.getFontPackages());
384349
}

0 commit comments

Comments
 (0)