Skip to content

Commit 5497190

Browse files
committed
Stop calling getButton() in ComponentWithBrowseButton
This API is marked to be removed from the API in the platform, see https://github.com/JetBrains/intellij-community/blob/master/platform/platform-api/src/com/intellij/openapi/ui/ComponentWithBrowseButton.java#L270
1 parent b4363aa commit 5497190

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

third_party/src/main/java/com/jetbrains/lang/dart/ide/runner/server/ui/DartCommandLineConfigurationEditorForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public DartCommandLineConfigurationEditorForm(final Project project) {
5757

5858
public static void initDartFileTextWithBrowse(final @NotNull Project project,
5959
final @NotNull TextFieldWithBrowseButton textWithBrowse) {
60-
textWithBrowse.getButton().addActionListener(e -> {
60+
textWithBrowse.addActionListener(e -> {
6161
final String initialPath = FileUtil.toSystemIndependentName(textWithBrowse.getText().trim());
6262
final VirtualFile initialFile = initialPath.isEmpty() ? null : LocalFileSystem.getInstance().findFileByPath(initialPath);
6363
final PsiFile initialPsiFile = initialFile == null ? null : PsiManager.getInstance(project).findFile(initialFile);

third_party/src/main/java/com/jetbrains/lang/dart/ide/runner/server/ui/DartWebdevConfigurationEditorForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class DartWebdevConfigurationEditorForm extends SettingsEditor<DartWebdev
2626
private PortField myWebdevPortField;
2727

2828
public DartWebdevConfigurationEditorForm(final Project project) {
29-
myHtmlFileField.getButton().addActionListener(e -> {
29+
myHtmlFileField.addActionListener(e -> {
3030
final String initialPath = FileUtil.toSystemIndependentName(myHtmlFileField.getText().trim());
3131
final VirtualFile initialFile = initialPath.isEmpty() ? null : LocalFileSystem.getInstance().findFileByPath(initialPath);
3232
final PsiFile initialPsiFile = initialFile == null ? null : PsiManager.getInstance(project).findFile(initialFile);

0 commit comments

Comments
 (0)