scope identifierSafetyEditPanel. static S #listName = "JavaX Identifier Safety"; static JTable table; static JPanel identifierSafetyEditPanel() { final JTable table = sexyTableWithoutDrag(); makeTable(table); final JTextField tf = jtextfield(); Runnable save = r { S value = getTextTrim(tf); if (nempty(value)) if (ml_isChange(addToMechHashMap(listName, mapWithSingleValue(selectedTableRowsFirstColumn(table), value)))) makeTable(table); }; onEnter(tf, save); ret centerAndSouthWithMargins(table, jcenteredline( jlabel("Safety comment:"), jminwidth(250, tf), selectedRowCountTableButton(table, jbutton("Save", save)))); } static void #makeTable(JTable table) { final SS map = mechHashMap(listName); O f = func(S id) -> Map { litorderedmap("Identifier" := id, "Safety" := or2(map.get(id), "?")) }; dataToTable_uneditable(table, map(f, keysWithValueContainingSubstring(map, "?"))); } end scope
Began life as a copy of #1015747
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: | #1015767 |
| Snippet name: | identifierSafetyEditPanel - shows all entries with question marks |
| Eternal ID of this version: | #1015767/9 |
| Text MD5: | a9aac6f2198335835193cf0e7b2c40c5 |
| Author: | stefan |
| Category: | javax / code analysis / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-27 16:51:46 |
| Source code size: | 983 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 574 / 615 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |