Skip to content

Commit

Permalink
修改schema前缀为默认选中,修改生成文件编码默认编码格式UTF-8默认选中,防止未选择,点击生成代码,错误提示为空的情况。
Browse files Browse the repository at this point in the history
  • Loading branch information
it-noob committed Apr 8, 2018
1 parent 14af6da commit 018a4ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ public void initialize(URL location, ResourceBundle resources) {
});
loadLeftDBTree();
setTooltip();
//默认选中第一个,否则如果忘记选择,没有对应错误提示
encodingChoice.getSelectionModel().selectFirst();
}

private void setTooltip() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fxml/MainUI.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<HBox spacing="18.0">
<children>
<CheckBox fx:id="needToStringHashcodeEquals" mnemonicParsing="false" selected="true" text="生成toString/hashCode/equals方法" />
<CheckBox fx:id="useSchemaPrefix" mnemonicParsing="false" selected="false" text="使用Schema前缀" />
<CheckBox fx:id="useSchemaPrefix" mnemonicParsing="false" selected="true" text="使用Schema前缀" />
</children>
</HBox>
<HBox spacing="18.0">
Expand Down

0 comments on commit 018a4ce

Please sign in to comment.