Пример #1
0
 private void removeWithParent(TreeItem toRemove) {
   TreeItem parent = treeStore.getParent(toRemove);
   treeStore.remove(toRemove);
   if (parent != null && !treeStore.hasChildren(parent)) {
     removeWithParent(parent);
   }
 }
Пример #2
0
 public void removeSessionInfo() {
   TreeItem sessionInfo = treeStore.findModelWithKey(SESSION_INFO_ID);
   if (sessionInfo != null) treeStore.remove(sessionInfo);
 }