Skip to content

Commit 8fbd282

Browse files
authored
Merge pull request #23 from 864381832/jdk17dev
Jdk17dev
2 parents 1246e8d + 2b0fab5 commit 8fbd282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+519
-783
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
logs/
77
target/
88
libs/
9+
devLibs
910

1011
system_plugin_list.json
1112
RUNNING_PID

LICENSE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353

5454
3, 请将如下声明文本放入每个源文件的头部注释中。
5555

56-
Copyright (c) [Year] [name of copyright holder]
57-
[Software Name] is licensed under Mulan PSL v2.
56+
Copyright (c) [2019] [xufeng]
57+
[xJavaFxTool] is licensed under Mulan PSL v2.
5858
You can use this software according to the terms and conditions of the Mulan PSL v2.
5959
You may obtain a copy of Mulan PSL v2 at:
6060
http://license.coscl.org.cn/MulanPSL2
@@ -118,8 +118,8 @@
118118
iii Attach the statement to the appropriate annotated syntax at the beginning of each source file.
119119

120120

121-
Copyright (c) [Year] [name of copyright holder]
122-
[Software Name] is licensed under Mulan PSL v2.
121+
Copyright (c) [2019] [xufeng]
122+
[xJavaFxTool] is licensed under Mulan PSL v2.
123123
You can use this software according to the terms and conditions of the Mulan PSL v2.
124124
You may obtain a copy of Mulan PSL v2 at:
125125
http://license.coscl.org.cn/MulanPSL2

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ xJavaFxTool是使用javaFx开发的实用小工具集,利用业余时间把工
2323
由于SpringBoot的火热,项目已经出SpringBoot-javafx版本,[xJavaFxTool-spring](https://gitee.com/xwintop/xJavaFxTool-spring) 欢迎参考,谢谢。
2424

2525
#### 下载地址:
26-
- 可直接运行的jar包(本地需要有jdk17环境)[xJavaFxTool-0.3.1.jar](https://gitee.com/xwintop/xJavaFxTool/attach_files/1011054/download/xJavaFxTool-0.3.1.jar)
27-
- Windows x64安装包(兼容windows7、8、10、11等系统)[xJavaFxTool-0.3.1-windows-x64.exe](https://gitee.com/xwintop/xJavaFxTool/attach_files/1011059/download/xJavaFxTool-0.3.1-windows-x64.exe)
28-
- Linux x64 [xJavaFxTool-0.3.1-linux-x64.zip](https://gitee.com/xwintop/xJavaFxTool/attach_files/1011058/download/xJavaFxTool-0.3.1-linux-x64.zip)
29-
- Mac OS x64 [xJavaFxTool-0.3.1-macos.dmg](https://gitee.com/xwintop/xJavaFxTool/attach_files/1011060/download/xJavaFxTool-0.3.1-macos.dmg)
26+
- 可直接运行的jar包(本地需要有jdk17环境)[xJavaFxTool-0.3.2.jar](https://gitee.com/xwintop/xJavaFxTool/attach_files/1022632/download/xJavaFxTool-0.3.2.jar)
27+
- Windows x64安装包(兼容windows7、8、10、11等系统)[xJavaFxTool-0.3.2-windows-x64.exe](https://gitee.com/xwintop/xJavaFxTool/attach_files/1022629/download/xJavaFxTool_0.3.2-windows-x64.exe)
28+
- Linux x64 [xJavaFxTool-0.3.2-linux-x64.zip](https://gitee.com/xwintop/xJavaFxTool/attach_files/1022631/download/xJavaFxTool-0.3.2-linux-x64.zip)
29+
- Mac OS x64 [xJavaFxTool-0.3.2-macos.dmg](https://gitee.com/xwintop/xJavaFxTool/attach_files/1022635/download/xJavaFxTool_0.3.2-macos.dmg)
3030
- 更多下载地址见[发布页面](https://gitee.com/xwintop/xJavaFxTool/releases)
3131
#### 若上面下链接失效可使用下面下载链接:
3232
- 百度云链接:[https://pan.baidu.com/s/193fhGnJL4dDWcqDnFJcHbA](https://pan.baidu.com/s/193fhGnJL4dDWcqDnFJcHbA) 提取码:mokl

README_EN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ xJavaFxTool is a practical gadget set developed by javaFx. It uses some time to
2121
Due to the hot SpringBoot, the project has been released SpringBoot-javafx version, [xJavaFxTool-spring](https://gitee.com/xwintop/xJavaFxTool-spring) welcome reference, thank you.
2222

2323
#### Download trial address:
24-
- Jar package that can be run directly (local need to have jdk1.8 environment)[xJavaFxTool-0.2.3.jar](https://xwintop.gitee.io/maven/package/xJavaFxTool/xJavaFxTool-0.2.3.jar)
25-
- Windows x64 installation package (compatible with xp, windows7, 8, 10, etc.)[xJavaFxTool-0.2.3-windows-x64.exe](https://xwintop.gitee.io/maven/package/xJavaFxTool/xJavaFxTool-0.2.3-windows-x64.exe)
26-
- Mac OS X x64 [xJavaFxTool-0.2.3-macosx-x64.pkg](https://xwintop.gitee.io/maven/package/xJavaFxTool/xJavaFxTool-0.2.3-macosx-x64.pkg)
24+
- Jar package that can be run directly (local need to have jdk1.8 environment)[xJavaFxTool-0.3.2.jar](https://github.com/864381832/xJavaFxTool/releases/download/0.3.2/xJavaFxTool-0.3.2.jar)
25+
- Windows x64 installation package (compatible with xp, windows7, 8, 10, etc.)[xJavaFxTool-0.3.2-windows-x64.exe](https://github.com/864381832/xJavaFxTool/releases/download/0.3.2/xJavaFxTool-0.3.2-windows-x64.exe)
26+
- Mac OS x64 [xJavaFxTool-0.3.2-macos.pkg](https://github.com/864381832/xJavaFxTool/releases/download/0.3.2/xJavaFxTool-0.3.2-macos.pkg)
27+
- Linux x64 [xJavaFxTool-0.3.2-linux-x64.zip](https://github.com/864381832/xJavaFxTool/releases/download/0.3.2/xJavaFxTool-0.3.2-linux-x64.zip)
2728
#### If the above link fails, use the download link below:
2829
- Baidu cloud link: [https://pan.baidu.com/s/193fhGnJL4dDWcqDnFJcHbA](https://pan.baidu.com/s/193fhGnJL4dDWcqDnFJcHbA) extraction code: mokl
2930
- Tencent micro cloud link: [https://share.weiyun.com/5T6FPLW](https://share.weiyun.com/5T6FPLW) extraction code: java
@@ -36,8 +37,7 @@ the plug-in jar package can be automatically loaded under the root directory lib
3637
- Developed with eclipase or Intellij Idea (Recommended to use [Intellij Idea](https://www.jetbrains.com/idea/) )
3738
- This project uses [lombok](https://projectlombok.org/) . If you have not downloaded the lombok plugin when viewing this project, please install it first, otherwise you can't find the get/set method.
3839
- The dependent [xcore](https://gitee.com/xwintop/xcore) package has been uploaded to the git-hosted maven platform. The git hosting maven can refer to the tutorial (if you can't download it, please pull the project to compile it yourself ). Tutorial address: Click to enter
39-
- Package using the [javafx-maven-plugin](https://github.com/javafx-maven-plugin/javafx-maven-plugin) (can be packaged for windows, Linux, Mac installation packages)
40-
- Use [exe4j](https://www.ej-technologies.com/download/exe4j/files) to convert the jar package into an exe executable file (for reference only, you can use other programs to package)
40+
- Package using the [javapackager](https://github.com/fvarrui/JavaPackager) (can be packaged for windows, Linux, Mac installation packages)
4141
- Use [InnoSetup](http://www.jrsoftware.org/) to make windows installation packages
4242

4343
#### The currently integrated gadgets are:

pom.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.xwintop</groupId>
66
<artifactId>xJavaFxTool</artifactId>
7-
<version>0.3.1</version>
7+
<version>0.3.2</version>
88
<packaging>jar</packaging>
99
<name>xJavaFxTool</name>
1010
<description>基于JavaFx搭建的实用小工具集合</description>
@@ -19,7 +19,6 @@
1919
<maven.test.skip>true</maven.test.skip>
2020
<maven.compiler.source>17</maven.compiler.source>
2121
<maven.compiler.target>17</maven.compiler.target>
22-
<javafx.version>17.0.2</javafx.version>
2322
</properties>
2423
<repositories>
2524
<repository>
@@ -48,17 +47,16 @@
4847
<groupId>org.projectlombok</groupId>
4948
<artifactId>lombok</artifactId>
5049
<version>1.18.22</version>
51-
<optional>true</optional>
5250
<scope>provided</scope>
5351
</dependency>
5452

5553
<!-- https://mvnrepository.com/artifact/io.github.classgraph/classgraph -->
5654
<!-- https://github.com/classgraph/classgraph -->
57-
<dependency>
58-
<groupId>io.github.classgraph</groupId>
59-
<artifactId>classgraph</artifactId>
60-
<version>4.8.100</version>
61-
</dependency>
55+
<!-- <dependency>-->
56+
<!-- <groupId>io.github.classgraph</groupId>-->
57+
<!-- <artifactId>classgraph</artifactId>-->
58+
<!-- <version>4.8.100</version>-->
59+
<!-- </dependency>-->
6260
</dependencies>
6361
<build>
6462
<plugins>

src/main/java/com/xwintop/xJavaFxTool/XJavaFxToolApplication.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Copyright (c) [2019] [xufeng]
3+
* [xJavaFxTool] is licensed under Mulan PSL v2.
4+
* You can use this software according to the terms and conditions of the Mulan PSL v2.
5+
* You may obtain a copy of Mulan PSL v2 at:
6+
* http://license.coscl.org.cn/MulanPSL2
7+
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
8+
* See the Mulan PSL v2 for more details.
9+
*/
10+
111
package com.xwintop.xJavaFxTool;
212

313
import com.xwintop.xJavaFxTool.controller.IndexController;
@@ -40,7 +50,7 @@ public void start(Stage primaryStage) throws Exception {
4050
FxApp.styleSheets.add(XJavaFxToolApplication.class.getResource("/css/jfoenix-main.css").toExternalForm());
4151

4252
// if (SystemUtil.getOsInfo().isMac()) {
43-
//Mac下设置dock栏图标
53+
//Mac下设置dock栏图标
4454
// Taskbar.getTaskbar().setIconImage(ImageIO.read(XJavaFxToolApplication.class.getResourceAsStream(LOGO_PATH)));
4555
// }
4656

src/main/java/com/xwintop/xJavaFxTool/XJavaFxToolMain.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* Copyright (c) [2019] [xufeng]
3+
* [xJavaFxTool] is licensed under Mulan PSL v2.
4+
* You can use this software according to the terms and conditions of the Mulan PSL v2.
5+
* You may obtain a copy of Mulan PSL v2 at:
6+
* http://license.coscl.org.cn/MulanPSL2
7+
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
8+
* See the Mulan PSL v2 for more details.
9+
*/
110
package com.xwintop.xJavaFxTool;
211

312
import com.xwintop.xJavaFxTool.utils.XJavaFxSystemUtil;

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

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
import com.xwintop.xJavaFxTool.services.IndexService;
1313
import com.xwintop.xJavaFxTool.services.index.SystemSettingService;
1414
import com.xwintop.xJavaFxTool.utils.Config;
15+
import com.xwintop.xJavaFxTool.utils.VersionChecker;
1516
import com.xwintop.xJavaFxTool.view.IndexView;
1617
import com.xwintop.xcore.javafx.FxApp;
18+
import com.xwintop.xcore.javafx.dialog.FxAlerts;
1719
import com.xwintop.xcore.javafx.dialog.FxDialog;
1820
import com.xwintop.xcore.util.ConfigureUtil;
1921
import com.xwintop.xcore.util.HttpClientUtil;
@@ -74,16 +76,12 @@ public void initialize(URL location, ResourceBundle resources) {
7476
initView();
7577
initEvent();
7678
initService();
77-
initNotepad();
78-
}
79-
80-
private void initNotepad() {
81-
// if (Config.getBoolean(Config.Keys.NotepadEnabled, true)) {
82-
// addNodepadAction(null);
83-
// }
8479
}
8580

8681
private void initView() {
82+
if (Config.getBoolean(Config.Keys.NotepadEnabled, true)) {
83+
addNodepadAction(null);
84+
}
8785
this.indexService.addWebView(XJavaFxToolApplication.RESOURCE_BUNDLE.getString("feedback"), QQ_URL, null);
8886
this.tongjiWebView.getEngine().load(STATISTICS_URL);
8987
this.tabPaneMain.getSelectionModel().select(0);
@@ -95,6 +93,8 @@ private void initEvent() {
9593
}
9694

9795
private void initService() {
96+
PluginManager pluginManager = PluginManager.getInstance();
97+
pluginManager.loadLocalDevPluginConfiguration();
9898
loadPlugins(); // 加载插件列表到界面上
9999
AppEvents.addEventHandler(PluginEvent.PLUGIN_DOWNLOADED, pluginEvent -> {
100100
loadPlugins();
@@ -114,6 +114,7 @@ public void loadPlugins() {
114114
PluginManager pluginManager = PluginManager.getInstance();
115115
pluginManager.loadLocalPlugins();
116116
pluginManager.getEnabledPluginList().forEach(this::loadPlugin);
117+
pluginManager.getDevPluginList().forEach(this::loadPlugin);
117118
}
118119

119120
/**
@@ -164,24 +165,24 @@ private void addCategory(PluginCategoryController category) {
164165
}
165166

166167
private void addMenu(PluginJarInfo jarInfo) {
167-
MenuItem menu = moreToolsMenu.getItems().stream().filter(menuItem1 -> jarInfo.getMenuParentId().equals(menuItem1.getId())).findAny().orElse(null);
168-
if (menu == null) {
169-
menu = new Menu(XJavaFxToolApplication.RESOURCE_BUNDLE.getString(jarInfo.getMenuParentTitle()));
170-
menu.setId(jarInfo.getMenuParentId());
171-
moreToolsMenu.getItems().add(menu);
172-
}
173-
MenuItem menuItem = new MenuItem(jarInfo.getTitle());
174-
if (StringUtils.isNotEmpty(jarInfo.getIconPath())) {
175-
ImageView imageView = new ImageView(new Image(jarInfo.getIconPath()));
176-
imageView.setFitHeight(18);
177-
imageView.setFitWidth(18);
178-
menuItem.setGraphic(imageView);
179-
}
180-
menuItem.setOnAction((ActionEvent event) -> {
181-
indexService.loadPlugin(jarInfo);
182-
});
183-
((Menu)menu).getItems().add(menuItem);
184-
menuItemMap.put(menuItem.getText(), menuItem);
168+
MenuItem menu = moreToolsMenu.getItems().stream().filter(menuItem1 -> jarInfo.getMenuParentId().equals(menuItem1.getId())).findAny().orElse(null);
169+
if (menu == null) {
170+
menu = new Menu(XJavaFxToolApplication.RESOURCE_BUNDLE.getString(jarInfo.getMenuParentTitle()));
171+
menu.setId(jarInfo.getMenuParentId());
172+
moreToolsMenu.getItems().add(menu);
173+
}
174+
MenuItem menuItem = new MenuItem(jarInfo.getTitle());
175+
if (jarInfo.getIconImage() != null || StringUtils.isNotEmpty(jarInfo.getIconPath())) {
176+
ImageView imageView = new ImageView(jarInfo.getIconImage() == null ? new Image(jarInfo.getIconPath()) : jarInfo.getIconImage());
177+
imageView.setFitHeight(18);
178+
imageView.setFitWidth(18);
179+
menuItem.setGraphic(imageView);
180+
}
181+
menuItem.setOnAction((ActionEvent event) -> {
182+
indexService.loadPlugin(jarInfo);
183+
});
184+
((Menu) menu).getItems().add(menuItem);
185+
menuItemMap.put(menuItem.getText(), menuItem);
185186
}
186187

187188
public void selectAction(String selectText) {
@@ -239,6 +240,13 @@ private void SettingAction() {
239240
SystemSettingService.openSystemSettings(bundle.getString("Setting"));
240241
}
241242

243+
@FXML
244+
private void checkerVersionAction() {
245+
if (!VersionChecker.checkNewVersion()) {
246+
FxAlerts.info("提示", "已经是新版本");
247+
}
248+
}
249+
242250
@FXML
243251
private void aboutAction() {
244252
AlertUtil.showInfoAlert(bundle.getString("aboutText") + Config.xJavaFxToolVersions);
@@ -270,6 +278,11 @@ private void openConfigFolderAction() {
270278
private void openPluginFolderAction() {
271279
JavaFxSystemUtil.openDirectory("libs/");
272280
}
281+
282+
@FXML
283+
private void openDevPluginFolderAction() {
284+
JavaFxSystemUtil.openDirectory("devLibs/");
285+
}
273286

274287
@FXML
275288
private void xwintopLinkOnAction() throws Exception {

0 commit comments

Comments
 (0)