1 | svoid dm_gazelle_newRuleDialog_3(S in) {
|
2 | dm_gazelle_newRuleDialog_3(in, ""); |
3 | } |
4 | |
5 | svoid dm_gazelle_newRuleDialog_3(S in, S comments) {
|
6 | S out = dropPrefixTrim("+", lastLine(in));
|
7 | final JTextArea taRule = typeWriterTextArea(in + "\n=> " + out); |
8 | final JTextArea taComments = typeWriterTextArea(comments); |
9 | showFormTitled2("New Gazelle Rule",
|
10 | Rule := taRule, |
11 | Comments := taComments, |
12 | r {
|
13 | Pair<S, Bool> p = dm_gazelle_addRuleWithComment(getText(taRule), getText(taComments)); |
14 | infoBox(p.b ? "Rule " + p.a + " added" : "Rule already there: " + p.a); |
15 | }); |
16 | } |
Began life as a copy of #1021484
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1021494 |
| Snippet name: | dm_gazelle_newRuleDialog_3 |
| Eternal ID of this version: | #1021494/5 |
| Text MD5: | 20f947d13c0b0201ad2ffaee8adb3e6b |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-17 15:49:31 |
| Source code size: | 597 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 564 / 584 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |