From e4556c15e31bddec2c6c1e936ab715fc5f10bb1f Mon Sep 17 00:00:00 2001 From: leecho571 Date: Thu, 13 Dec 2018 16:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../idea/plugin/mybatis/generator/ui/GenerateSettingUI.java | 2 +- .../idea/plugin/mybatis/generator/ui/GeneratorSettingUI.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GenerateSettingUI.java b/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GenerateSettingUI.java index fea3414..018bcd4 100644 --- a/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GenerateSettingUI.java +++ b/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GenerateSettingUI.java @@ -154,7 +154,7 @@ public GenerateSettingUI(AnActionEvent anActionEvent) { entityConfig.setLombokBuilderAnnotation(globalConfig.isLombokBuilderAnnotation()); } - contentPane.setPreferredSize(new Dimension(600, 500)); + contentPane.setPreferredSize(new Dimension(700, 500)); contentPane.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP)); //initDatabasePanel(); diff --git a/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GeneratorSettingUI.java b/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GeneratorSettingUI.java index 22d1be9..77b0232 100644 --- a/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GeneratorSettingUI.java +++ b/src/com/github/leecho/idea/plugin/mybatis/generator/ui/GeneratorSettingUI.java @@ -79,6 +79,7 @@ public void createUI(Project project) { examplePostfixField.setText(globalConfig.getExamplePostfix()); entityPackageField.setText(globalConfig.getEntityPackage()); mapperPackageField.setText(globalConfig.getMapperPackage()); + examplePackageField.setText(globalConfig.getEntityPackage()); xmlPackageField.setText(globalConfig.getXmlPackage()); sourcePathField.setText(globalConfig.getSourcePath()); @@ -269,6 +270,7 @@ public void actionPerformed(ActionEvent e) { //packagePanel.setBorder(BorderFactory.createTitledBorder("Package")); packagePanel.add(projectRootPanel); packagePanel.add(entityPackagePanel); + packagePanel.add(mapperPackagePanel); packagePanel.add(examplePackagePanel); packagePanel.add(xmlPackagePanel); @@ -302,6 +304,7 @@ public void apply() { globalConfig.setExamplePostfix(examplePostfixField.getText()); globalConfig.setEntityPackage(entityPackageField.getText()); globalConfig.setMapperPackage(mapperPackageField.getText()); + globalConfig.setExamplePackage(examplePackageField.getText()); globalConfig.setXmlPackage(xmlPackageField.getText()); globalConfig.setOffsetLimit(offsetLimitBox.getSelectedObjects() != null); globalConfig.setComment(commentBox.getSelectedObjects() != null);