File tree Expand file tree Collapse file tree
java/com/xwintop/xJavaFxTool/newui
resources/com/xwintop/xJavaFxTool/fxmlView/newui Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments