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

12
LINES

< > BotCompany Repo | #1021484 // dm_gazelle_newRuleDialog_2

JavaX fragment (include)

svoid dm_gazelle_newRuleDialog_2(S in) {
  dm_gazelle_newRuleDialog_2(in, dropPrefixTrim("+", lastLine(in)));
}

svoid dm_gazelle_newRuleDialog_2(S in, S out) {
  inputMultiLineText("New Gazelle Rule",
    in + "\n=> " + out,
    voidfunc(S s) {
      Pair<S, Bool> p = dm_gazelle_addRule(s);
      infoBox(p.b ? "Rule " + p.a + " added" : "Rule already there: " + p.a);
    });
}

Author comment

Began life as a copy of #1021467

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: #1021484
Snippet name: dm_gazelle_newRuleDialog_2
Eternal ID of this version: #1021484/4
Text MD5: 5f1f1e0a10b884ebfe6955f7e7143561
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-14 23:45:36
Source code size: 391 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 277
Version history: 3 change(s)
Referenced in: [show references]