|
|
|
@ -719,7 +719,7 @@ public class JavaFxApplication extends Application {
|
|
|
|
|
loadProject();
|
|
|
|
|
} else if (value instanceof Module) {
|
|
|
|
|
currentModule = (Module) value;
|
|
|
|
|
loadingModule();
|
|
|
|
|
loadModule();
|
|
|
|
|
} else if (value instanceof Table) {
|
|
|
|
|
currentTable = (Table) value;
|
|
|
|
|
initTable();
|
|
|
|
@ -731,8 +731,6 @@ public class JavaFxApplication extends Application {
|
|
|
|
|
@Override
|
|
|
|
|
public TreeCell call(TreeView param) {
|
|
|
|
|
return new TreeCell() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void updateItem(Object item, boolean empty) {
|
|
|
|
|
super.updateItem(item, empty);
|
|
|
|
@ -797,7 +795,10 @@ public class JavaFxApplication extends Application {
|
|
|
|
|
Module module = (Module) getTreeItem().getValue();
|
|
|
|
|
|
|
|
|
|
projectTreeItem.getChildren().remove(moduleTreeItem);
|
|
|
|
|
project.getChildren().remove(module);
|
|
|
|
|
project.getModules().remove(module);
|
|
|
|
|
if (currentModule.hashCode() == module.hashCode()){
|
|
|
|
|
loadProject();
|
|
|
|
|
}
|
|
|
|
|
System.out.println("删除模块" + mo.getModuleName());
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -849,6 +850,9 @@ public class JavaFxApplication extends Application {
|
|
|
|
|
|
|
|
|
|
getTreeItem().getParent().getChildren().remove(indexOf);
|
|
|
|
|
module.getTables().remove(indexOf);
|
|
|
|
|
if (currentTable.hashCode() == table.hashCode()){
|
|
|
|
|
loadModule();
|
|
|
|
|
}
|
|
|
|
|
System.out.println("删除对象" + table.getTableName());
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -888,7 +892,7 @@ public class JavaFxApplication extends Application {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void loadingModule() {
|
|
|
|
|
private void loadModule() {
|
|
|
|
|
if (currentModule == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|