Skip to content

Commit

Permalink
fix界面的bug及更新中文
Browse files Browse the repository at this point in the history
  • Loading branch information
zouzg committed Aug 22, 2016
1 parent 577da50 commit 189673e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import java.util.ResourceBundle;

/**
* 管理GeneratorConfig的Controller
*
* Created by Owen on 8/21/16.
*/
public class GeneratorConfigController extends BaseFXController {
Expand Down Expand Up @@ -49,6 +51,7 @@ protected void updateItem(Object item, boolean empty) {
super.updateItem(item, empty);
if (item == null || empty) {
setText(null);
setGraphic(null);
} else {
Button btn1 = new Button("应用");
Button btn2 = new Button("删除");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ public void initialize(URL location, ResourceBundle resources) {
TreeItem<String> treeItem = treeCell.getTreeItem();
if (level == 1) {
final ContextMenu contextMenu = new ContextMenu();
MenuItem item1 = new MenuItem("Close Connection");
MenuItem item1 = new MenuItem("新建连接");
item1.setOnAction(event1 -> {
treeItem.getChildren().clear();
});
MenuItem item2 = new MenuItem("Delete Connection");
MenuItem item2 = new MenuItem("删除连接");
item2.setOnAction(event1 -> {
DatabaseConfig selectedConfig = (DatabaseConfig) treeItem.getGraphic().getUserData();
try {
Expand Down

0 comments on commit 189673e

Please sign in to comment.