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

26
LINES

< > BotCompany Repo | #1036364 // G22LAScratchpad

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (65320L) is out of date.

1  
concept G22LAScratchpad extends ConceptWithChangeListeners {
2  
  settableWithVar S text;
3  
  transient JLeftArrowScriptIDE ide;
4  
  
5  
  G22Utils g22utils() { ret main g22utils(this); }
6  
  
7  
  cachedVisualize {
8  
    ide = g22utils().leftArrowScriptIDE();
9  
    ide.sourceInfo("Scratchpad");
10  
11  
    var btnSave = jImageButton(#1103084, "Save script", rThread saveAsNewScript);
12  
    
13  
    // place to the right of hideable stuff
14  
    int idx = 0;
15  
    while (getComponentAtIndex(ide.buttons(), idx) instanceof SingleComponentPanel) idx++;
16  
    addComponentAtIndex(ide.buttons(), idx, btnSave);
17  
      
18  
    ide.sectionTitle("Left Arrow Script Scratchpad");
19  
    ide.lvScript(varText());
20  
    ret withTopMargin(ide.visualize());
21  
  }
22  
  
23  
  void saveAsNewScript {
24  
    g22utils().projectActions().saveAsNewScript(text);
25  
  }
26  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036364
Snippet name: G22LAScratchpad
Eternal ID of this version: #1036364/4
Text MD5: 01709346443e184f187a06af1689b178
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-26 18:45:03
Source code size: 819 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 61 / 114
Version history: 3 change(s)
Referenced in: [show references]