Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1017677 // ai_openMainParseInJTree

JavaX fragment (include)

1  
static void ai_openMainParseInJTree(final JTree tree) {
2  
  swing {
3  
    ai_openMainParseInJTree(tree, jDynamicTree_root(tree));
4  
  }
5  
}
6  
7  
static void ai_openMainParseInJTree(JTree tree, DefaultMutableTreeNode n) {
8  
  if (n == null) ret;
9  
  tree.expandPath(new TreePath(n.getPath()));
10  
  PTElement e = cast n.getUserObject();
11  
  int count = n.getChildCount();
12  
  if (!e instanceof ChoosePart) count = min(1, count);
13  
  for i to count:
14  
    ai_openMainParseInJTree(tree, (DefaultMutableTreeNode) n.getChildAt(i));
15  
}

Author comment

Began life as a copy of #1017433

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017677
Snippet name: ai_openMainParseInJTree
Eternal ID of this version: #1017677/5
Text MD5: fa19b52cd276a89360b5526bcf18926a
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-02 12:20:52
Source code size: 515 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 374
Version history: 4 change(s)
Referenced in: [show references]