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

!7

cmodule OfferAddingNewServerModules > DynPrintLogAndEnabled {
  start {
    dm_onSnippetTranspiled(voidfunc(S snippetID) {
      if (!enabled) ret;
      if (!dm_hadUserActivityInLastNMinutes(1)) ret;
      if (!isDynamicModuleSnippet(snippetID)) ret;
    
      // TODO: How to find out if it's a "new" module?
      disposeWindowAfter(30.0, showPackedFrameInBottomRightCorner(
        centerAndSouthWithMargins(jlabel("Add new module: "
          + snippetWithTitle(snippetID) + "?"),
            hgridWithSpacing(
              jThreadedButton("OK", rEnter {
                disposeWindow(heldInstance(JButton));
                dm_makeOrShowModuleFromSnippetID(snippetID);
              }),
              jCancelButton("No")
            )
        )));
    });
  }
}

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: 140 / 214
Version history: 2 change(s)
Referenced in: [show references]