Skip to content

Commit 81e0601

Browse files
committed
修复传输工具历史编辑页面bug
1 parent 8b742f8 commit 81e0601

5 files changed

Lines changed: 26 additions & 11 deletions

File tree

src/main/java/com/xwintop/xJavaFxTool/controller/IndexController.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ private void addWebView(String title, String url, String iconPath) {
288288
tabPaneMain.getSelectionModel().select(tab);
289289
}
290290

291+
@FXML
292+
private void pluginManageAction(ActionEvent event) throws Exception {
293+
}
294+
291295
@FXML
292296
private void aboutAction(ActionEvent event) throws Exception {
293297
AlertUtil.showInfoAlert(bundle.getString("aboutText") + Config.xJavaFxToolVersions);
@@ -300,20 +304,25 @@ private void setLanguageAction(ActionEvent event) throws Exception {
300304
}
301305

302306
@FXML
303-
private void openLogFile(ActionEvent event) throws Exception {
307+
private void openLogFileAction(ActionEvent event) throws Exception {
304308
String filePath = "logs/logFile." + DateFormatUtils.format(new Date(), "yyyy-MM-dd") + ".log";
305309
XJavaFxSystemUtil.openDirectory(filePath);
306310
}
307311

308312
@FXML
309-
private void openLogFolder(ActionEvent event) throws Exception {
313+
private void openLogFolderAction(ActionEvent event) throws Exception {
310314
XJavaFxSystemUtil.openDirectory("logs/");
311315
}
312316
@FXML
313-
private void openConfigFolder(ActionEvent event) throws Exception {
317+
private void openConfigFolderAction(ActionEvent event) throws Exception {
314318
XJavaFxSystemUtil.openDirectory(ConfigureUtil.getConfigurePath());
315319
}
316320

321+
@FXML
322+
private void openPluginFolderAction(ActionEvent event) throws Exception {
323+
XJavaFxSystemUtil.openDirectory("libs/");
324+
}
325+
317326
@FXML
318327
private void xwintopLinkOnAction(ActionEvent event) throws Exception {
319328
HttpClientUtil.openBrowseURLThrowsException("https://gitee.com/xwintop/xJavaFxTool");

src/main/java/com/xwintop/xJavaFxTool/controller/developTools/xTransferTool/TransferToolUrlDocumentDialogController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class TransferToolUrlDocumentDialogController extends TransferToolUrlDocu
3434
private ObservableList<Map<String, String>> tableData = FXCollections.observableArrayList();
3535

3636
public static FXMLLoader getFXMLLoader() {
37-
FXMLLoader fXMLLoader = new FXMLLoader(IndexController.class.getResource("/com/xwintop/xJavaFxTool/fxmlView/developTools/xTransferTool/UrlDocumentDialog.fxml"));
37+
FXMLLoader fXMLLoader = new FXMLLoader(IndexController.class.getResource("/com/xwintop/xJavaFxTool/fxmlView/developTools/xTransferTool/TransferToolUrlDocumentDialog.fxml"));
3838
return fXMLLoader;
3939
}
4040

src/main/resources/com/xwintop/xJavaFxTool/fxmlView/Index.fxml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<items>
1616
<MenuItem mnemonicParsing="false" onAction="#closeAllTabAction" text="%closeAllTab" />
1717
<MenuItem mnemonicParsing="false" onAction="#openAllTabAction" text="%openAllTab" />
18+
<MenuItem mnemonicParsing="false" onAction="#pluginManageAction" text="%plugin_manage" />
1819
<MenuItem mnemonicParsing="false" onAction="#addNodepadAction" text="%addNodepad" />
1920
<MenuItem mnemonicParsing="false" onAction="#addLogConsoleAction" text="%addLogConsole" />
2021
<SeparatorMenuItem/>
@@ -25,9 +26,10 @@
2526
<Menu fx:id="moreToolsMenu" mnemonicParsing="false" text="%More_Tools" />
2627
<Menu fx:id="netWorkToolsMenu" mnemonicParsing="false" text="%NetWork_Tools" />
2728
<Menu fx:id="helpMenu" mnemonicParsing="false" text="%Help">
28-
<MenuItem mnemonicParsing="false" onAction="#openLogFile" text="%openLogFile" />
29-
<MenuItem mnemonicParsing="false" onAction="#openLogFolder" text="%openLogFolder" />
30-
<MenuItem mnemonicParsing="false" onAction="#openConfigFolder" text="%openConfigFolder" />
29+
<MenuItem mnemonicParsing="false" onAction="#openLogFileAction" text="%openLogFile" />
30+
<MenuItem mnemonicParsing="false" onAction="#openLogFolderAction" text="%openLogFolder" />
31+
<MenuItem mnemonicParsing="false" onAction="#openConfigFolderAction" text="%openConfigFolder" />
32+
<MenuItem mnemonicParsing="false" onAction="#openPluginFolderAction" text="%openPluginFolder" />
3133
<SeparatorMenuItem/>
3234
<items>
3335
<Menu mnemonicParsing="false" text="%SetLanguage">

src/main/resources/locale/Menu.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ addLogConsole=\u65E5\u5FD7\u63A7\u5236\u53F0
1010
Exit=\u9000\u51FA
1111
Tools=\u5DE5\u5177
1212
More_Tools=\u66F4\u591A\u5DE5\u5177
13+
plugin_manage=\u63D2\u4EF6\u7BA1\u7406
1314
NetWork_Tools=\u7F51\u9875\u5DE5\u5177
1415
Help=\u5E2E\u52A9
1516
About=\u5173\u4E8E
1617
SetLanguage=\u8BBE\u7F6E\u8BED\u8A00
1718
openLogFile=\u6253\u5F00\u65E5\u5FD7\u6587\u4EF6
1819
openLogFolder=\u6253\u5F00\u65E5\u5FD7\u76EE\u5F55
1920
openConfigFolder=\u6253\u5F00\u914D\u7F6E\u76EE\u5F55
21+
openPluginFolder=\u6253\u5F00\u63D2\u4EF6\u76EE\u5F55
2022

2123
aboutText=\u6B22\u8FCE\u4F7F\u7528JavaFx\u5DE5\u5177\u96C6\u5408\u3002\ngit\u5730\u5740\uFF1Ahttps://gitee.com/xwintop/xJavaFxTool\n\u4F5C\u8005\uFF1A\u8FFD\u98CE\n\u535A\u5BA2\uFF1Awww.xwintop.com\n\u6B22\u8FCE\u524D\u6765\u63D0\u51FA\u610F\u89C1\uFF0C\u4E00\u8D77\u5B8C\u5584\u8BE5\u5DE5\u5177\uFF0C\u8C22\u8C22\uFF01\uFF01\n\u5F53\u524D\u7248\u672C\uFF1A
2224
SetLanguageText=\u8BED\u8A00\u9009\u62E9\u8BBE\u7F6E\u6210\u529F\uFF0C\u91CD\u542F\u540E\u751F\u6548\u3002

src/main/resources/locale/Menu_en_US.properties

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ addLogConsole=LogConsole
1010
Exit=Exit
1111
Tools=Tools
1212
More_Tools=More Tools
13+
plugin_manage=Plugin manage
1314
NetWork_Tools=NetWork Tools
1415
Help=Help
1516
About=About
16-
SetLanguage=SetLanguage
17-
openLogFile=openLogFile
18-
openLogFolder=openLogFolder
19-
openConfigFolder=openConfigFolder
17+
SetLanguage=Set Language
18+
openLogFile=open Log File
19+
openLogFolder=open Log Folder
20+
openConfigFolder=open Config Folder
21+
openPluginFolder=open Plugin Folder
2022

2123
aboutText=Welcome to the JavaFx tool set.\ngitUrl:https://gitee.com/xwintop/xJavaFxTool\nAuthor:xwintop\nblog:www.xwintop.com\nWelcome to make comments and improve the tool together. Thank you!!\ncurrent version:
2224
SetLanguageText=The language selection settings have been successful and will take effect after reboot.

0 commit comments

Comments
 (0)