sclass G22AnalyzersPanel { replace Script with G22Analyzer. replace IDE with G22AnalyzerIDE. transient settable G22Utils g22utils; *(G22Utils *g22utils) {} transient SimpleCRUD_v2<Script> scriptCRUD; transient SingleComponentPanel scpIDE; transient IDE scriptIDE; cachedVisualize { scriptCRUD = new SimpleCRUD_v2<>(g22utils.concepts(), Script); scriptCRUD.entityName = -> "Analyzer"; g22utils.setupScriptCRUD(scriptCRUD); scpIDE = singleComponentPanel(); var scriptCRUDVis = scriptCRUD.visualize(); scriptCRUD.onSelectionChanged(-> { scriptIDE = new IDE(g22utils); var script = scriptCRUD.selected(); scriptIDE.setScript(script); scpIDE.set(jCenteredRaisedSection(str(script), scriptIDE)); }); ret jvsplit( jCenteredSection("Analyzers", scriptCRUDVis), scpIDE); } void updateCount { scriptCRUD.update(); } void edit(Script script) { scriptCRUD.setSelected(script); } void setSelected(Script script) { scriptCRUD.setSelected(script); } void selectAfterUpdate(Script script) { scriptCRUD.selectAfterUpdate(script); } }
Began life as a copy of #1034473
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034945 |
Snippet name: | G22AnalyzersPanel backup |
Eternal ID of this version: | #1034945/1 |
Text MD5: | 44ba6e6cc800be3fb25ea77dcd0af526 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-17 18:01:13 |
Source code size: | 1222 bytes / 50 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 143 |
Referenced in: | -