Uses 911K of libraries. Click here for Pure Java version (9648L/50K).
1 | !7 |
2 | |
3 | cmodule GBigInput > DynBigInputAndSections { |
4 | start { |
5 | dm_useLocalMechListCopies(); |
6 | maximizeSingleSection = false; |
7 | } |
8 | |
9 | void makeSections_impl { |
10 | S text = trim(this.text); |
11 | |
12 | // Contains double arrow? Offer to add as Gazelle rule |
13 | |
14 | if (containsDoubleArrow_raw(text)) |
15 | addComponent(stack, jSection("Add as raw rule", jbutton("Add as raw rule", rThread { |
16 | dm_gazelle_addRuleWithComment(text, "") |
17 | }))); |
18 | |
19 | if (isSingleLine(text)) { |
20 | // Search for mech list names |
21 | |
22 | LS l = scoredSearch_localMechListNames(text); |
23 | if (nempty(l)) |
24 | addComponent(stack, jSection("Mech List Names", |
25 | jPreferHeight(100, jlist(l)))); |
26 | } |
27 | } |
28 | } |
Began life as a copy of #1022774
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: | #1022787 |
Snippet name: | Big Input with Gazelle & other intelligent actions |
Eternal ID of this version: | #1022787/9 |
Text MD5: | db6ea4527445efd4450f2372f9652615 |
Transpilation MD5: | 0da1ae1567ab87651f1aff171970d648 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-07 22:49:59 |
Source code size: | 739 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 274 / 540 |
Version history: | 8 change(s) |
Referenced in: | [show references] |