public void addDbConnect(MongoDbConnection mongoDbConnection) { DbTreeValue connectTreeValue = new DbTreeValue(mongoDbConnection, mongoDbConnection.getConnectionSettings().getHost()); DynamicTreeItem item = new DynamicTreeItem( connectTreeValue, new FontAwesomeIconView(FontAwesomeIcon.SERVER), executor, popupService, tv -> buildDbList(tv.getHostConnect().getMongoConnection())); item.setOnFiled(() -> removeFromRoot(item)); item.setExpanded(true); treeView.getRoot().getChildren().add(item); }
public MongoConnection getMongoConnection() { return dbConnect.getMongoConnection(); }