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

24
LINES

< > BotCompany Repo | #1026511 // Offer Adding All New Modules [dev.]

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

Uses 1113K of libraries. Click here for Pure Java version (11539L/60K).

1  
!7
2  
3  
cmodule OfferAddingNewServerModules > DynPrintLogAndEnabled {
4  
  start {
5  
    dm_onSnippetTranspiled(voidfunc(S snippetID) {
6  
      if (!enabled) ret;
7  
      if (!dm_hadUserActivityInLastNMinutes(1)) ret;
8  
      if (!isDynamicModuleSnippet(snippetID)) ret;
9  
    
10  
      // TODO: How to find out if it's a "new" module?
11  
      disposeWindowAfter(30.0, showPackedFrameInBottomRightCorner(
12  
        centerAndSouthWithMargins(jlabel("Add new module: "
13  
          + snippetWithTitle(snippetID) + "?"),
14  
            hgridWithSpacing(
15  
              jThreadedButton("OK", rEnter {
16  
                disposeWindow(heldInstance(JButton));
17  
                dm_makeOrShowModuleFromSnippetID(snippetID);
18  
              }),
19  
              jCancelButton("No")
20  
            )
21  
        )));
22  
    });
23  
  }
24  
}

Author comment

Began life as a copy of #1021905

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026511
Snippet name: Offer Adding All New Modules [dev.]
Eternal ID of this version: #1026511/3
Text MD5: 2fbfbc6122560ed0d74037251f74177b
Transpilation MD5: 93aee25160f121a2c80e40a7e83bd161
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-08 14:50:23
Source code size: 796 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 222
Version history: 2 change(s)
Referenced in: [show references]