Download Jar. Uses 3874K of libraries. Click here for Pure Java version (8919L/64K).
1 | !7 |
2 | |
3 | static JTable table; |
4 | |
5 | p-noconsole {
|
6 | autoRestart(); |
7 | makeTable(); |
8 | addToWindowWithMargin(table, jcenteredline( |
9 | selectedRowCountTableButton(table, jbutton("Accept", r {
|
10 | Map<S, SS> entries = ciMap(); |
11 | for (L<S> l : selectedTableRowsData(table)) {
|
12 | S listName = first(l); |
13 | SS map = entries.get(listName); |
14 | if (map == null) entries.put(listName, map = ciMap()); |
15 | map.put(second(l), third(l)); |
16 | } |
17 | |
18 | bool change = false; |
19 | for (S listName : keys(entries)) |
20 | change |= ml_isChange(addToMechMap(listName, entries.get(listName))); |
21 | infoBox(change ? "Changes." : "No changes"); |
22 | // TODO: remove from suggestion list |
23 | })))); |
24 | } |
25 | |
26 | svoid makeTable {
|
27 | LL<S> l = map unstructList(mL("Suggested list appends"));
|
28 | table = showTable(table, map(l, func(L<S> l) -> Map {
|
29 | listToMapWithKeys(l, "Destination List", "Key", "Value") })); |
30 | } |
Began life as a copy of #1014343
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014586 |
| Snippet name: | Show suggested list edits & allow to confirm |
| Eternal ID of this version: | #1014586/5 |
| Text MD5: | 78c67de4c16aeae75933d5a5fac90f53 |
| Transpilation MD5: | 4e6d52cd0e4c1d5431e64976412ae1ef |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-24 13:55:43 |
| Source code size: | 936 bytes / 30 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 675 / 1879 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |