コード例 #1
0
ファイル: DBNDatabaseNode.java プロジェクト: thecocce/dbeaver
  private void refreshNodeContent(final DBRProgressMonitor monitor, Object source)
      throws DBException {
    if (isDisposed()) {
      return;
    }
    this.locked = true;
    DBNModel model = getModel();
    try {
      model.fireNodeUpdate(source, this, DBNEvent.NodeChange.LOCK);

      this.reloadChildren(monitor);

      model.fireNodeUpdate(source, this, DBNEvent.NodeChange.REFRESH);
    } finally {
      this.locked = false;

      // Unlock node
      model.fireNodeUpdate(source, this, DBNEvent.NodeChange.UNLOCK);
    }
    // new RefreshJob("Refresh node " + getNodeName()).schedule();
  }