Skip to content

Commit

Permalink
修复设置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
leecho committed Dec 13, 2018
1 parent fd765d4 commit e4556c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e4556c1

Please sign in to comment.