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