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

25
LINES

< > BotCompany Repo | #1019999 // Local Programs Search [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15377L/109K).

1  
!7
2  
3  
module LocalProgramsSearch > DynQuickSearch {
4  
  afterVisualize {
5  
    listPopupMenuThreaded(list,
6  
      "Edit", voidfunc(S s) enter {
7  
        dm_openSnippetInEditor(beforeSpace(s));
8  
      }, "Make New", voidfunc(S s) enter {
9  
        dm_addDynamicModuleDialog2(beforeSpace(s), false);
10  
        dm_hideQuickSearchModules();
11  
      });
12  
    
13  
    onDoubleClickOrEnterThreaded(list, voidfunc(fS s) enter {
14  
      dm_addDynamicModuleDialog2(beforeSpace(s), true);
15  
      dm_hideQuickSearchModules();
16  
    });
17  
  }
18  
  
19  
  L<S> calc_impl() {
20  
    ret scoredSearch_eachTerm(query,
21  
      map(listLocalSnippets(), func(Snippet s) -> S {
22  
        s.id + " - " + or2(s.title, "Unnamed")
23  
      }));
24  
  }
25  
}

Author comment

Began life as a copy of #1016932

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019999
Snippet name: Local Programs Search [Dyn Module]
Eternal ID of this version: #1019999/1
Text MD5: fc0aa4db6ca589f9faa47d1c4964d033
Transpilation MD5: 791f956e13fbba863c0aeb4228d7c732
Author: stefan
Category: javax / gui
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-03 21:45:11
Source code size: 706 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 311 / 1705
Referenced in: [show references]