From a466f0b37fa5459172f40898110812c03af90bbc Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 18 Mar 2024 19:25:45 +0100 Subject: [PATCH] ui: clarify 'Set Background Image' dialog actions behavior GitOrigin-RevId: 4aee8cf64ad61c5b2f5314192a354567c7307067 --- .../images/editor/actions/BackgroundImageDialog.java | 5 +++++ .../platform-api/resources/messages/IdeBundle.properties | 2 ++ 2 files changed, 7 insertions(+) diff --git a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java index 91a34787abc2..0f7f60f4ed90 100644 --- a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java +++ b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java @@ -120,6 +120,9 @@ public class BackgroundImageDialog extends DialogWrapper { }); } + /** + * Called by UI Designer + */ private void createUIComponents() { ComboBox comboBox = new ComboBox<>(new CollectionComboBoxModel<>(), 100); myPathField = new ComboboxWithBrowseButton(comboBox); @@ -311,6 +314,8 @@ public class BackgroundImageDialog extends DialogWrapper { myEditorPreview.updateView(); } updatePreview(); + setOKButtonText(EDITOR.equals(myPreviewTarget) ? IdeBundle.message("set.action.editor.and.tools") + : IdeBundle.message("set.action.empty.frame")); } public void setSelectedPath(@NlsSafe String path) { diff --git a/platform/platform-api/resources/messages/IdeBundle.properties b/platform/platform-api/resources/messages/IdeBundle.properties index 89a96917a4e3..ceefff0f471f 100644 --- a/platform/platform-api/resources/messages/IdeBundle.properties +++ b/platform/platform-api/resources/messages/IdeBundle.properties @@ -1704,6 +1704,8 @@ button.clear.and.close=Clear and Close dialog.title.background.image=Background Image toggle.editor.and.tools=Editor and Tools toggle.empty.frame=Empty Frame +set.action.editor.and.tools=Set for Editor and Tools +set.action.empty.frame=Set for Empty Frame label.text.image=Image: label.text.opacity=Opacity: checkbox.text.this.project.only=This project only