From 2663eff789555bf6533f7c8db007747468d762f3 Mon Sep 17 00:00:00 2001 From: Owen Zou Date: Sat, 21 Jan 2017 21:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=B5=81=E7=A8=8B=EF=BC=8C?= =?UTF-8?q?=E8=AE=A9=E7=94=A8=E6=88=B7=E4=B8=8D=E7=94=A8=E9=80=89=E6=8B=A9?= =?UTF-8?q?connector=E6=96=87=E4=BB=B6=EF=BC=8C=E6=8F=90=E4=BE=9B=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + pom.xml | 4 +- .../controller/MainUIController.java | 13 ---- src/main/resources/fxml/MainUI.fxml | 62 +++++++----------- src/main/resources/lib/ojdbc14.jar | Bin 1569316 -> 0 bytes 5 files changed, 27 insertions(+), 53 deletions(-) delete mode 100644 src/main/resources/lib/ojdbc14.jar diff --git a/README.md b/README.md index 70b9b842..4355c74f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ mybatis-generator-gui是基于[mybatis generator](http://www.mybatis.org/generat cd target/jfx/app/ java -jar mybatis-generator-gui.jar + * 方法三: IDE中运行 diff --git a/pom.xml b/pom.xml index 63b7cb58..c7d5553c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.zzg mybatis-generator-gui - 0.3 + 0.6 UTF-8 @@ -56,7 +56,7 @@ ojdbc14 10.2.0.3.0 system - ${project.basedir}/src/main/resources/lib/ojdbc14.jar + ${project.basedir}/src/main/resources/connector/ojdbc14.jar org.postgresql diff --git a/src/main/java/com/zzg/mybatis/generator/controller/MainUIController.java b/src/main/java/com/zzg/mybatis/generator/controller/MainUIController.java index 440dfd30..29925303 100644 --- a/src/main/java/com/zzg/mybatis/generator/controller/MainUIController.java +++ b/src/main/java/com/zzg/mybatis/generator/controller/MainUIController.java @@ -53,8 +53,6 @@ public class MainUIController extends BaseFXController { @FXML private Label configsLabel; @FXML - private TextField connectorPathField; - @FXML private TextField modelTargetPackage; @FXML private TextField mapperTargetPackage; @@ -207,15 +205,6 @@ void loadLeftDBTree() { } } - @FXML - public void chooseConnectorFile() { - FileChooser directoryChooser = new FileChooser(); - File selectedFolder = directoryChooser.showOpenDialog(getPrimaryStage()); - if (selectedFolder != null) { - connectorPathField.setText(selectedFolder.getAbsolutePath()); - } - } - @FXML public void chooseProjectFolder() { DirectoryChooser directoryChooser = new DirectoryChooser(); @@ -272,7 +261,6 @@ public void saveGeneratorConfig() { public GeneratorConfig getGeneratorConfigFromUI() { GeneratorConfig generatorConfig = new GeneratorConfig(); - generatorConfig.setConnectorJarPath(connectorPathField.getText()); generatorConfig.setProjectFolder(projectFolderField.getText()); generatorConfig.setModelPackage(modelTargetPackage.getText()); generatorConfig.setGenerateKeys(generateKeysField.getText()); @@ -291,7 +279,6 @@ public GeneratorConfig getGeneratorConfigFromUI() { } public void setGeneratorConfigIntoUI(GeneratorConfig generatorConfig) { - connectorPathField.setText(generatorConfig.getConnectorJarPath()); projectFolderField.setText(generatorConfig.getProjectFolder()); modelTargetPackage.setText(generatorConfig.getModelPackage()); generateKeysField.setText(generatorConfig.getGenerateKeys()); diff --git a/src/main/resources/fxml/MainUI.fxml b/src/main/resources/fxml/MainUI.fxml index 09d18c78..e1af41c5 100644 --- a/src/main/resources/fxml/MainUI.fxml +++ b/src/main/resources/fxml/MainUI.fxml @@ -68,7 +68,6 @@ - @@ -80,27 +79,14 @@ -