ui: clarify 'Set Background Image' dialog actions behavior

GitOrigin-RevId: 4aee8cf64ad61c5b2f5314192a354567c7307067
This commit is contained in:
Aleksey Pivovarov
2024-03-18 19:25:45 +01:00
committed by intellij-monorepo-bot
parent 8650ff0b12
commit a466f0b37f
2 changed files with 7 additions and 0 deletions

View File

@@ -120,6 +120,9 @@ public class BackgroundImageDialog extends DialogWrapper {
});
}
/**
* Called by UI Designer
*/
private void createUIComponents() {
ComboBox<String> 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) {

View File

@@ -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