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

19
LINES

< > BotCompany Repo | #1015906 // lastRunTable_update

JavaX fragment (include)

1  
static L<SS> lastRunTable_update(JTable table) {
2  
  print("Updating last run table...");
3  
  new L<SS> l;
4  
  for (S s : uniquifyList(reversedList(scanRunLog()))) {
5  
    S progID = s;
6  
    int i = s.indexOf(' ');
7  
    if (i >= 0) {
8  
      progID = substring(s, 0, i);
9  
      s = trim(substring(s, i+1));
10  
    } else
11  
      s = ""; // no arguments
12  
    //S title = getSnippetTitle_cached(progID);
13  
    l.add(litorderedmap("Program ID" := fsI(progID),
14  
      "Title" := "?", "Arguments" := s));
15  
  }
16  
  lastRunTable_addProgramTitles(l);
17  
  dataToTable_uneditable(l, table);
18  
  ret l;
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015906
Snippet name: lastRunTable_update
Eternal ID of this version: #1015906/5
Text MD5: 1b334152ca1a197de79792b5dbcbdcf2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-30 14:15:33
Source code size: 584 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 360 / 356
Version history: 4 change(s)
Referenced in: [show references]