Skip to content

Commit 118d351

Browse files
committed
newui: WIP: 实现创建插件项目工具
1 parent fdf47b0 commit 118d351

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/com/xwintop/xJavaFxTool/newui/PluginCreatorController.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ public void choosePluginLogo() {
7575
}
7676
}
7777

78+
public void choosePluginLocation() {
79+
File pluginLocation = FileChooserUtil.chooseDirectory();
80+
if (pluginLocation != null) {
81+
this.txtLocation.setText(pluginLocation.getAbsolutePath());
82+
}
83+
}
84+
7885
public PluginProjectInfo getPluginProjectInfo() {
7986
PluginProjectInfo pluginProjectInfo = new PluginProjectInfo();
8087
pluginProjectInfo.setLocation(this.txtLocation.getText());

src/main/resources/com/xwintop/xJavaFxTool/fxmlView/newui/plugin-creator.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<HBox alignment="BASELINE_LEFT" spacing="5">
2525
<Label text="项目位置: " prefWidth="$labelWidth"/>
2626
<TextField HBox.hgrow="ALWAYS" fx:id="txtLocation"/>
27-
<Button text="..."/>
27+
<Button text="..." onAction="#choosePluginLocation"/>
2828
</HBox>
2929
<HBox alignment="BASELINE_LEFT" spacing="5">
3030
<Label text="groupId: " prefWidth="$labelWidth"/>

0 commit comments

Comments
 (0)