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

15
LINES

< > BotCompany Repo | #1017677 // ai_openMainParseInJTree

JavaX fragment (include)

static void ai_openMainParseInJTree(final JTree tree) {
  swing {
    ai_openMainParseInJTree(tree, jDynamicTree_root(tree));
  }
}

static void ai_openMainParseInJTree(JTree tree, DefaultMutableTreeNode n) {
  if (n == null) ret;
  tree.expandPath(new TreePath(n.getPath()));
  PTElement e = cast n.getUserObject();
  int count = n.getChildCount();
  if (!e instanceof ChoosePart) count = min(1, count);
  for i to count:
    ai_openMainParseInJTree(tree, (DefaultMutableTreeNode) n.getChildAt(i));
}

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: 334 / 367
Version history: 4 change(s)
Referenced in: [show references]