Skip to content

Commit

Permalink
Fix latest EAP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Sep 29, 2024
1 parent 18c612f commit 283505d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fuel = "2.3.1"
licenser = "0.6.1"
changelog = "2.2.0"
intellij-plugin = "2.1.0"
intellij-ide = "243-EAP-SNAPSHOT"
intellij-ide = "243.16718.32-EAP-SNAPSHOT"
idea-ext = "1.1.8"
psiPlugin = "243.7768"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ class LocalTemplateProvider : TemplateProvider {
return panel {
row(MCDevBundle("creator.ui.custom.path.label")) {
val pathChooserDescriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor().apply {
title = MCDevBundle("creator.ui.custom.path.dialog.title")
description = MCDevBundle("creator.ui.custom.path.dialog.description")
}
textFieldWithBrowseButton(
MCDevBundle("creator.ui.custom.path.dialog.title"),
null,
pathChooserDescriptor
).align(AlignX.FILL)
textFieldWithBrowseButton(pathChooserDescriptor)
.align(AlignX.FILL)
.columns(COLUMNS_LARGE)
.bindText(pathProperty)
.textValidation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ class ZipTemplateProvider : TemplateProvider {
return panel {
row(MCDevBundle("creator.ui.custom.path.label")) {
val pathChooserDescriptor = FileChooserDescriptorFactory.createSingleLocalFileDescriptor()
.withTitle(MCDevBundle("creator.ui.custom.archive.dialog.title"))
.withFileFilter { it.extension == "zip" }
.apply { description = MCDevBundle("creator.ui.custom.archive.dialog.description") }
textFieldWithBrowseButton(
MCDevBundle("creator.ui.custom.archive.dialog.title"),
null,
pathChooserDescriptor
).align(AlignX.FILL)
textFieldWithBrowseButton(pathChooserDescriptor)
.align(AlignX.FILL)
.columns(COLUMNS_LARGE)
.bindText(pathProperty)
.textValidation(
Expand Down

0 comments on commit 283505d

Please sign in to comment.