Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public MongoConnection getMongoConnection() {
   return dbConnect.getMongoConnection();
 }