1 | static bool replaceTreeNodeChildren(final DefaultMutableTreeNode node, fL children) { |
2 | if (node == null) false; |
3 | ret swing(func -> bool { |
4 | L oldChildren = mapMethod('getUserObject, node.children()); |
5 | if (eq(oldChildren, children)) false; |
6 | node.removeAllChildren(); |
7 | for (O c : children) |
8 | node.add(new DefaultMutableTreeNode(c)); |
9 | true; |
10 | }); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016036 |
Snippet name: | replaceTreeNodeChildren |
Eternal ID of this version: | #1016036/1 |
Text MD5: | 5abc11ddc997ea3a6b5c5238ab7502b9 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-03 12:51:19 |
Source code size: | 375 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 299 / 336 |
Referenced in: | [show references] |