Skip to content

Commit f65b542

Browse files
Hanxiao LiuHanxiao Liu
authored andcommitted
Fix class cast exception in explorer dialogs
1 parent f67cdb2 commit f65b542

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice-java/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/AppServiceInfoBasicPanel.form

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<grid id="27dc6" binding="contentPanel" layout-manager="GridLayoutManager" row-count="6" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
44
<margin top="0" left="0" bottom="0" right="0"/>
55
<constraints>
6-
<xy x="20" y="20" width="417" height="180"/>
6+
<xy x="20" y="20" width="417" height="204"/>
77
</constraints>
88
<properties/>
99
<border type="none"/>
@@ -43,10 +43,11 @@
4343
<text value="Platform:"/>
4444
</properties>
4545
</component>
46-
<component id="a4196" class="com.microsoft.azure.toolkit.intellij.legacy.appservice.platform.RuntimeComboBox" binding="selectorRuntime">
46+
<component id="a4196" class="com.microsoft.azure.toolkit.intellij.legacy.appservice.platform.RuntimeComboBox" binding="selectorRuntime" custom-create="true">
4747
<constraints>
4848
<grid row="2" column="1" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="8" fill="1" indent="0" use-parent-layout="true"/>
4949
</constraints>
50+
<properties/>
5051
</component>
5152
<component id="3e67" class="com.intellij.ui.TitledSeparator" binding="deploymentTitle">
5253
<constraints>

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice-java/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/AppServiceInfoBasicPanel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public RuntimeComboBox getSelectorRuntime() {
135135
private void createUIComponents() {
136136
// TODO: place custom component creation code here
137137
this.selectorApplication = new AzureArtifactComboBox(project, true);
138+
this.selectorRuntime = new RuntimeComboBox();
138139
}
139140

140141
public void setDeploymentVisible(boolean visible) {

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/serviceplan/ServicePlanCreationDialog.form

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@
2727
<text value="Name:"/>
2828
</properties>
2929
</component>
30-
<component id="c8aa9" class="com.microsoft.azure.toolkit.intellij.common.AzureTextInput" binding="textName">
30+
<component id="c8aa9" class="com.microsoft.azure.toolkit.intellij.common.AzureTextInput" binding="textName" custom-create="true">
3131
<constraints>
3232
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3333
</constraints>
3434
<properties>
3535
<required value="true"/>
3636
</properties>
3737
</component>
38-
<component id="75e4b" class="com.microsoft.azure.toolkit.intellij.legacy.appservice.serviceplan.PricingTierComboBox" binding="comboBoxPricingTier">
38+
<component id="75e4b" class="com.microsoft.azure.toolkit.intellij.legacy.appservice.serviceplan.PricingTierComboBox" binding="comboBoxPricingTier" custom-create="true">
3939
<constraints>
4040
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4141
</constraints>
42+
<properties/>
4243
</component>
4344
<component id="a504e" class="com.intellij.ui.components.JBLabel" binding="labelDescription">
4445
<constraints>

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/serviceplan/ServicePlanCreationDialog.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,9 @@ public List<AzureFormInput<?>> getInputs() {
104104
return Collections.singletonList(this.textName);
105105
}
106106

107+
private void createUIComponents() {
108+
// TODO: place custom component creation code here
109+
this.textName = new AzureTextInput();
110+
this.comboBoxPricingTier = new PricingTierComboBox();
111+
}
107112
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component/resourcegroup/ResourceGroupCreationDialog.form

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<text value="Name:"/>
2020
</properties>
2121
</component>
22-
<component id="c8aa9" class="com.microsoft.azure.toolkit.intellij.common.component.resourcegroup.ResourceGroupNameTextField" binding="textName">
22+
<component id="c8aa9" class="com.microsoft.azure.toolkit.intellij.common.component.resourcegroup.ResourceGroupNameTextField" binding="textName" custom-create="true">
2323
<constraints>
2424
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
2525
</constraints>

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component/resourcegroup/ResourceGroupCreationDialog.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@ public void setValue(final ResourceGroupDraft data) {
6969
public List<AzureFormInput<?>> getInputs() {
7070
return Collections.singletonList(this.textName);
7171
}
72+
73+
private void createUIComponents() {
74+
// TODO: place custom component creation code here
75+
this.textName = new ResourceGroupNameTextField();
76+
}
7277
}

0 commit comments

Comments
 (0)