Skip to content

Commit 35b95a6

Browse files
authored
Fix being unable to open the file browser in the Schemas download panel (#2439)
1 parent 6ad9088 commit 35b95a6

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix being unable to open the file browser in the Schemas download panel"
4+
}

jetbrains-core/src/software/aws/toolkits/jetbrains/services/schemas/code/DownloadCodeForSchemaPanel.form

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="software.aws.toolkits.jetbrains.services.schemas.code.DownloadCodeForSchemaPanel">
3-
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="5" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
3+
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="5" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
44
<margin top="0" left="0" bottom="0" right="0"/>
55
<constraints>
66
<xy x="20" y="20" width="786" height="149"/>
@@ -12,7 +12,7 @@
1212
<children>
1313
<component id="bf1af" class="javax.swing.JLabel" binding="heading">
1414
<constraints>
15-
<grid row="0" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
15+
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
1616
</constraints>
1717
<properties>
1818
<text resource-bundle="software/aws/toolkits/resources/localized_messages" key="schemas.schema.download_code_bindings.heading"/>
@@ -30,7 +30,7 @@
3030
</component>
3131
<component id="195bc" class="javax.swing.JComboBox" binding="version" custom-create="true">
3232
<constraints>
33-
<grid row="2" column="1" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
33+
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
3434
<preferred-size width="150" height="-1"/>
3535
</grid>
3636
</constraints>
@@ -58,7 +58,7 @@
5858
</component>
5959
<component id="959e5" class="javax.swing.JComboBox" binding="language" custom-create="true">
6060
<constraints>
61-
<grid row="3" column="1" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
61+
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
6262
</constraints>
6363
<properties>
6464
<editable value="false"/>
@@ -73,7 +73,7 @@
7373
</vspacer>
7474
<component id="17116" class="com.intellij.openapi.ui.TextFieldWithBrowseButton" binding="location">
7575
<constraints>
76-
<grid row="4" column="1" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
76+
<grid row="4" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
7777
</constraints>
7878
<properties>
7979
<toolTipText resource-bundle="software/aws/toolkits/resources/localized_messages" key="schemas.schema.download_code_bindings.location.tooltip"/>

jetbrains-core/src/software/aws/toolkits/jetbrains/services/schemas/code/DownloadCodeForSchemaPanel.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ class DownloadCodeForSchemaPanel(project: Project) {
3838
}
3939

4040
init {
41-
location.addActionListener(
42-
ProjectFileBrowseListener(
43-
project,
44-
FileChooserDescriptorFactory.createSingleFolderDescriptor()
45-
)
46-
)
41+
location.addBrowseFolderListener(ProjectFileBrowseListener(project, FileChooserDescriptorFactory.createSingleFolderDescriptor()))
4742
}
4843

4944
fun setLanguages(languages: List<SchemaCodeLangs>) {

0 commit comments

Comments
 (0)