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).

!7

module LocalProgramsSearch > DynQuickSearch {
  afterVisualize {
    listPopupMenuThreaded(list,
      "Edit", voidfunc(S s) enter {
        dm_openSnippetInEditor(beforeSpace(s));
      }, "Make New", voidfunc(S s) enter {
        dm_addDynamicModuleDialog2(beforeSpace(s), false);
        dm_hideQuickSearchModules();
      });
    
    onDoubleClickOrEnterThreaded(list, voidfunc(fS s) enter {
      dm_addDynamicModuleDialog2(beforeSpace(s), true);
      dm_hideQuickSearchModules();
    });
  }
  
  L<S> calc_impl() {
    ret scoredSearch_eachTerm(query,
      map(listLocalSnippets(), func(Snippet s) -> S {
        s.id + " - " + or2(s.title, "Unnamed")
      }));
  }
}

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: 310 / 1702
Referenced in: