Skip to content

Commit c39951f

Browse files
committed
remove(Create Module Dialog): remove language option.
1 parent c3ebd3d commit c39951f

2 files changed

Lines changed: 3 additions & 41 deletions

File tree

src/com/dengzii/plugin/template/ui/CreateModuleDialog.form

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<properties/>
4040
<border type="empty"/>
4141
<children>
42-
<grid id="e3588" binding="mainPanel" layout-manager="GridLayoutManager" row-count="4" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="14" vgap="10">
42+
<grid id="e3588" binding="mainPanel" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="14" vgap="10">
4343
<margin top="10" left="26" bottom="10" right="26"/>
4444
<constraints border-constraint="Center"/>
4545
<properties>
@@ -94,41 +94,10 @@
9494
</grid>
9595
</children>
9696
</grid>
97-
<grid id="1845e" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
98-
<margin top="0" left="0" bottom="0" right="0"/>
99-
<constraints>
100-
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
101-
</constraints>
102-
<properties/>
103-
<border type="empty"/>
104-
<children>
105-
<component id="c97b" class="javax.swing.JLabel">
106-
<constraints>
107-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
108-
</constraints>
109-
<properties>
110-
<font size="12" style="1"/>
111-
<text value="Language"/>
112-
</properties>
113-
</component>
114-
<component id="9f2f1" class="javax.swing.JComboBox" binding="cbLanguage">
115-
<constraints>
116-
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
117-
</constraints>
118-
<properties>
119-
<font size="12"/>
120-
<model>
121-
<item value="Kotlin"/>
122-
<item value="Java"/>
123-
</model>
124-
</properties>
125-
</component>
126-
</children>
127-
</grid>
12897
<grid id="d3c26" layout-manager="GridLayoutManager" row-count="2" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
12998
<margin top="0" left="0" bottom="0" right="0"/>
13099
<constraints>
131-
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
100+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
132101
</constraints>
133102
<properties/>
134103
<border type="empty"/>
@@ -163,7 +132,7 @@
163132
</grid>
164133
<vspacer id="ed063">
165134
<constraints>
166-
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
135+
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
167136
</constraints>
168137
</vspacer>
169138
</children>

src/com/dengzii/plugin/template/ui/CreateModuleDialog.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class CreateModuleDialog extends JDialog {
2424
private JPanel rootPanel;
2525
private JLabel labelTitle;
2626
private JComboBox cbModuleTemplate;
27-
private JComboBox cbLanguage;
2827
private JPanel mainPanel;
2928
private JPanel contentPanel;
3029

@@ -141,7 +140,6 @@ private void initDialog() {
141140
tablePlaceholder = new EditableTable(new String[]{"Key", "Value"}, new Boolean[]{false, true});
142141
tablePlaceholder.setToolBarVisible(false);
143142
panelPlaceholder.add(tablePlaceholder, BorderLayout.CENTER);
144-
cbLanguage.setModel(new DefaultComboBoxModel<>(Module.Companion.getLangList()));
145143

146144
btConfigure.setIcon(AllIcons.General.GearPlain);
147145
previewPanel = new PreviewPanel();
@@ -156,11 +154,6 @@ private void initDialog() {
156154
btCancel.addActionListener(e -> dispose());
157155
btConfigure.addActionListener(this::onConfClick);
158156

159-
cbLanguage.addItemListener(e -> {
160-
if (cbLanguage.getSelectedItem() != null) {
161-
selectedModule.setLanguage(cbLanguage.getSelectedItem().toString().toUpperCase());
162-
}
163-
});
164157
cbModuleTemplate.addItemListener(e -> {
165158
onModuleConfigChange();
166159
});

0 commit comments

Comments
 (0)