Home › Packages › ide-workbench

Package ide-workbench

This package contains 13 source unit(s) defining 13 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

ide-workbench-demo #sleela 2.5 (lib/ide-workbench/ide-workbench-demo.sleela)

IdeWorkbenchDemo class

Runnable demonstrator for the ide-workbench package — the IDE composition over lib/gui, lib/user-interface/lib/ui, lib/nordshrift, lib/compiler, and lib/sldocument. It walks the core worker journey: open a project, open a .sst sheet, edit it, compile it through "SST Nordshrit" (Nordshrift -> .sleela -> SLeeLa compiler), see diagnostics, and save. Self-contained (inline flow + main), in the style of lib/gui/gui-demo.sleela.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
boolToStrString boolToStr(boolean b)No description in source.
bannervoid banner(String t)No description in source.
mainvoid main()No description in source.

ide-workbench-gui-demo #sleela 2.5 (lib/ide-workbench/ide-workbench-gui-demo.sleela)

IdeWorkbenchGuiDemo class

Runnable demonstrator that raises the SLeeLa IDE as a REAL SleelaUI window — the whole GUI authored in SLeeLa. It boots SLIdeWorkbenchUI, populates the project tree, opens a couple of files into SLTextView code editors inside the SLNotebook, publishes a sample diagnostic, and runs the SleelaUI event loop. On a headless host (no X11 display) boot() returns false and the demo exits cleanly, exactly like SLGalleryDemo. Family: ide-workbench. The user interface is SleelaUI; this file proves the IDE shell is usable from the language itself.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
runint run()No description in source.

SLIdeCommandRegistry #sleela 2.5 (lib/ide-workbench/SLIdeCommandRegistry.sleela)

SLIdeCommandRegistry class

Defines SLIdeCommandRegistry — the IDE command system lib/gui lacks. SLGuiAction models a single named, take-the-latch action; an IDE needs a registry of commands (Open, Save, Save All, Compile, Run, Close) each mapped to a stable id, a menu/toolbar label, and a SLeeLa operation name the host invokes. This is the single place that binds UI affordances (menus from lib/ui/SLMenu, toolbars, shortcuts) to the services: compile -> lib/nordshrift + lib/compiler, save/load -> lib/sldocument.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_COMMANDSstatic final int MAX_COMMANDS = 1024No description in source.
idsString[] idsstable command id, e.g. "ide.compile"
labelsString[] labelshuman label, e.g. "Compile"
operationsString[] operationsSLeeLa operation the host invokes
enabledint[] enabled1 when the command is currently invokable
countint countNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
initvoid init()No description in source.
installDefaultsvoid installDefaults()Register the standard IDE command set wired to its service operations.
registerboolean register(String id, String label, String operation)No description in source.
indexOfint indexOf(String id)No description in source.
sizeint size()No description in source.
hasboolean has(String id)No description in source.
labelOfString labelOf(String id)No description in source.
operationOfString operationOf(String id)No description in source.
setEnabledboolean setEnabled(String id, boolean on)Enable/disable a command (e.g. "Save" is disabled when nothing is dirty).
isEnabledboolean isEnabled(String id)No description in source.
toActionSLGuiAction toAction(String id)Build a bound lib/gui SLGuiAction for a command so a Path 1/Path 2 host can raise it; returns null for an unknown command.

SLIdeDiagnosticsPanel #sleela 2.5 (lib/ide-workbench/SLIdeDiagnosticsPanel.sleela)

SLIdeDiagnosticsPanel class

Defines SLIdeDiagnosticsPanel — the surface that renders compiler diagnostics inside the IDE. The compile pipeline (lib/compiler, lib/nordshrift) produces diagnostics; nothing in lib/gui or the widget packages shows them in an editor. This panel records category, severity, a 1-based (line, column) origin, the owning document id, and a message, honoring the /ide SLEELA.IDE.CONTRACT.md rule that compiler failures stay IDE-visible failures (a failed compile must not read back as success).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_DIAGNOSTICSstatic final int MAX_DIAGNOSTICS = 65536No description in source.
SEV_INFOstatic final int SEV_INFO = 0Severity scale (ascending). ERROR fails the compile result.
SEV_WARNINGstatic final int SEV_WARNING = 1No description in source.
SEV_ERRORstatic final int SEV_ERROR = 2No description in source.
documentIdsString[] documentIdsNo description in source.
severitiesint[] severitiesNo description in source.
linesint[] lines1-based line (compiler boundary is 1-based)
columnsint[] columns1-based column
messagesString[] messagesNo description in source.
countint countNo description in source.
errorCountint errorCountNo description in source.
warningCountint warningCountNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
initvoid init()No description in source.
clearvoid clear()Clear everything (called at the start of each compile run).
clearDocumentvoid clearDocument(String documentId)Clear just the diagnostics owned by one document (incremental recompile).
publishboolean publish(String documentId, int severity, int line, int column, String message)Publish one diagnostic from the compiler/Nordshrift output.
sizeint size()No description in source.
errorsint errors()No description in source.
warningsint warnings()No description in source.
compileSucceededboolean compileSucceeded()The IDE contract's failure rule: a run with any error is a failed run.
statusLineString statusLine()A short status line for the status bar (SLStatusBar in lib/user-interface).
messageAtString messageAt(int index)No description in source.
severityAtint severityAt(int index)No description in source.

SLIdeEditor #sleela 2.5 (lib/ide-workbench/SLIdeEditor.sleela)

SLIdeEditor class

Defines SLIdeEditor — a real code-editor buffer for one open source file. Where lib/ui/SLTextArea is a visibility stub, SLIdeEditor adds the editor state an IDE needs: a text buffer, a dirty (unsaved) flag, a caret offset, a selection span, and a revision marker that mirrors the lib/gui SLGuiDocument revision fingerprint so external changes can be reconciled. Presentation (actual glyphs, syntax colors) is still owned by the Java/native host; SLeeLa owns the buffer and the meaning of edits.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
documentIdString documentIdstable IDE-facing identity (matches SLGuiDocument.id)
pathString pathresolved host path, "" when untitled
languageString language"sleela" | "sst" | "c" | "cpp" | "java"
textString textthe live buffer contents
savedRevisionString savedRevisionon-disk revision last synced ("lastModified:size" | "absent")
dirtyint dirty1 when the buffer differs from the saved revision
caretint caretcaret offset into text
selStartint selStartselection start offset (== selEnd when no selection)
selEndint selEndselection end offset

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String docId, String docPath, String lang)No description in source.
getIdString getId()No description in source.
getPathString getPath()No description in source.
getLanguageString getLanguage()No description in source.
untitledboolean untitled()No description in source.
loadTextvoid loadText(String value, String revision)Replace the buffer (a load or a programmatic set); not itself a user edit.
setTextvoid setText(String value)A user edit: set the buffer text and mark it dirty.
getTextString getText()No description in source.
isDirtyboolean isDirty()No description in source.
markSavedvoid markSaved(String revision)Mark the buffer clean against the revision the host just wrote to disk.
moveCaretvoid moveCaret(int offset)Caret / selection (offsets are clamped to the buffer by the host).
getCaretint getCaret()No description in source.
selectvoid select(int start, int end)No description in source.
hasSelectionboolean hasSelection()No description in source.
staleAgainstboolean staleAgainst(String diskRevision)True when an external (on-disk) revision no longer matches what we loaded, i.e. the file changed underneath us (reconcile via the document listener).
isSstboolean isSst()No description in source.
isSleelaboolean isSleela()No description in source.

SLIdeLanguageBar #sleela 2.5 (lib/ide-workbench/SLIdeLanguageBar.sleela)

SLIdeLanguageBar class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
LANG_SLEELAstatic final int LANG_SLEELA=0No description in source.
LANG_Cstatic final int LANG_C=1No description in source.
LANG_CPPstatic final int LANG_CPP=2No description in source.
LANG_JAVAstatic final int LANG_JAVA=3No description in source.
rowSLBox rowNo description in source.
buttonsSLButton[] buttonsNo description in source.
labelsString[] labelsNo description in source.
activeint activeNo description in source.
pendingint pendingNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createInvoid createIn(SLWidget parent)No description in source.
pollint poll()No description in source.
takeLanguageint takeLanguage()No description in source.
selectedLanguageint selectedLanguage()No description in source.
languageNameString languageName()No description in source.

SLIdeMenuBar #sleela 2.5 (lib/ide-workbench/SLIdeMenuBar.sleela)

SLIdeMenuBar class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MENU_FILEstatic final int MENU_FILE = 0No description in source.
MENU_EDITstatic final int MENU_EDIT = 1No description in source.
MENU_VIEWstatic final int MENU_VIEW = 2No description in source.
MENU_NAVIGATEstatic final int MENU_NAVIGATE = 3No description in source.
MENU_CODEstatic final int MENU_CODE = 4No description in source.
MENU_RUNstatic final int MENU_RUN = 5No description in source.
MENU_TOOLSstatic final int MENU_TOOLS = 6No description in source.
MENU_HELPstatic final int MENU_HELP = 7No description in source.
rootSLBox rootNo description in source.
menuRowSLBox menuRowNo description in source.
commandRowSLBox commandRowNo description in source.
menusSLButton[] menusNo description in source.
commandsSLButton[] commandsNo description in source.
activeMenuint activeMenuNo description in source.
pendingCommandint pendingCommandNo description in source.
menuNamesString[] menuNamesNo description in source.
commandNamesString[] commandNamesNo description in source.
commandOwnersint[] commandOwnersNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createInvoid createIn(SLWidget parent)No description in source.
refreshCommandsvoid refreshCommands()No description in source.
pollint poll()No description in source.
takeCommandint takeCommand()No description in source.
selectedMenuint selectedMenu()No description in source.
commandNameString commandName(int index)No description in source.

SLIdeProjectTree #sleela 2.5 (lib/ide-workbench/SLIdeProjectTree.sleela)

SLIdeProjectTree class

Defines SLIdeProjectTree — the project / file explorer composition. lib/ui and lib/user-interface provide an SLTreeView widget but nothing binds it to a project model; this class is that binding. It holds the project root, a flat ordered list of entries (path + kind + depth that a tree widget renders), and the currently selected entry. Opening an entry is delegated upward to the workbench, which creates/focuses an SLIdeEditor.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_ENTRIESstatic final int MAX_ENTRIES = 65536No description in source.
rootPathString rootPaththe opened project / workspace root
pathsString[] pathsresolved host paths, one per visible entry
kindsint[] kinds0 = directory, 1 = file
depthsint[] depthsindentation depth for tree rendering
countint countNo description in source.
selectedint selectedindex of the selected entry, -1 when none

Methods — the actions this unit can perform.

MethodSignatureWhat it does
initvoid init(String root)No description in source.
rootString root()No description in source.
sizeint size()No description in source.
addEntryboolean addEntry(String path, int kind, int depth)Add a visible entry (the host enumerates the filesystem; SLeeLa models it).
isDirectoryboolean isDirectory(int index)No description in source.
isFileboolean isFile(int index)No description in source.
pathAtString pathAt(int index)No description in source.
depthAtint depthAt(int index)No description in source.
selectboolean select(int index)No description in source.
selectionint selection()No description in source.
selectedPathString selectedPath()No description in source.
selectionOpenableboolean selectionOpenable()The selected entry is openable in an editor only when it is a file.
languageForString languageFor(String path)Classify a path's editor language from its extension (drives SLIdeEditor and the compile route: .sst goes through Nordshrift, .sleela goes direct).
endsWithboolean endsWith(String s, String suffix)No description in source.
lenint len(String s)Thin wrappers over the host string services (kept explicit so the model is self-describing; the Java/native host supplies the implementations).
substrString substr(String s, int from, int to)No description in source.

SLIdeTabGroup #sleela 2.5 (lib/ide-workbench/SLIdeTabGroup.sleela)

SLIdeTabGroup class

Defines SLIdeTabGroup — the multi-document (tabbed) model lib/gui lacks. SLGuiWindow is a single-text window and SLGuiDocumentListener is hard-bounded to 1..14 watched documents; a real IDE opens many files. This group owns an unbounded set of SLIdeEditor buffers and tracks the active one, while exposing only the active + most-recently-focused editors (<= SLGUI_MAX_DOCUMENTS) to be registered with the OS watch. The 1..14 bound stays an OS-watch contract; the open-file count is independent of it.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_OPENstatic final int MAX_OPEN = 4096generous open-file ceiling
SLGUI_MAX_DOCUMENTSstatic final int SLGUI_MAX_DOCUMENTS = 14mirrors lib/gui's hard watch bound
editorsSLIdeEditor[] editorsNo description in source.
countint countNo description in source.
activeint activeindex of the active editor, -1 when none

Methods — the actions this unit can perform.

MethodSignatureWhat it does
initvoid init()No description in source.
sizeint size()No description in source.
emptyboolean empty()No description in source.
indexOfint indexOf(String documentId)Find an already-open editor for a document id (-1 when not open).
openint open(SLIdeEditor editor)Open (or focus, if already open) an editor; returns its index or -1 if full.
activeEditorSLIdeEditor activeEditor()No description in source.
focusboolean focus(int index)Focus an open tab by index; makes it the active (and most-recent) editor.
closeboolean close(int index)Close a tab; shifts the array down and keeps a valid active index.
dirtyCountint dirtyCount()How many editors have unsaved changes.
anyDirtyboolean anyDirty()No description in source.
watchSetSizeint watchSetSize()The number of editors the OS watch should register this moment: the active one plus as many others as fit under the 1..14 lib/gui contract. Never 0 when at least one editor is open (so the watch has a valid 1..14 count).
watchSetWithinGuiBoundboolean watchSetWithinGuiBound()True when the OS-watch registration must respect the 1..14 bound.

SLIdeToolbar #sleela 2.5 (lib/ide-workbench/SLIdeToolbar.sleela)

SLIdeToolbar class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
ACTION_NEWstatic final int ACTION_NEW=0No description in source.
ACTION_OPENstatic final int ACTION_OPEN=1No description in source.
ACTION_SAVEstatic final int ACTION_SAVE=2No description in source.
ACTION_BUILDstatic final int ACTION_BUILD=3No description in source.
ACTION_RUNstatic final int ACTION_RUN=4No description in source.
ACTION_DEBUGstatic final int ACTION_DEBUG=5No description in source.
ACTION_STOPstatic final int ACTION_STOP=6No description in source.
rowSLBox rowNo description in source.
buttonsSLButton[] buttonsNo description in source.
labelsString[] labelsNo description in source.
pendingint pendingNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createInvoid createIn(SLWidget parent)No description in source.
pollint poll()No description in source.
takeActionint takeAction()No description in source.
actionNameString actionName(int action)No description in source.

SLIdeWorkbench #sleela 2.5 (lib/ide-workbench/SLIdeWorkbench.sleela)

SLIdeWorkbench class

Defines SLIdeWorkbench — the top-level IDE composition. It owns the lib/gui window + the three-path integration posture, the tab group of open editors, the project tree, the command registry, and the diagnostics panel, and it implements the core edit -> compile -> save loop over the existing services: Nordshrift (.sst -> .sleela) + the SLeeLa compiler for compilation, and lib/sldocument for load/save. SLeeLa owns the IDE's meaning; the Java/native host owns presentation and desktop lifecycle.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
backendSLGuiBackend backendlib/gui: toolkit selection
windowSLGuiWindow windowlib/gui: the host window
integrationSLGuiIntegration integrationlib/gui: three-path posture
watchSLGuiDocumentListener watchlib/gui: OS-driven 1..14 document watch
tabsSLIdeTabGroup tabsopen editors (unbounded)
treeSLIdeProjectTree treeproject explorer
commandsSLIdeCommandRegistry commandsOpen/Save/Compile/Run/...
diagnosticsSLIdeDiagnosticsPanel diagnosticscompiler problems surface
readyint readyNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bootvoid boot(String backendKind, String title, int width, int height, String root)Stand up the whole shell. `root` is the opened project directory.
isReadyboolean isReady()No description in source.
openFileint openFile(String documentId, String path, String contents, String revision)Open a file from the tree into an editor tab, classifying its language.
editActivevoid editActive(String newText)Apply a user edit to the active editor.
compileActiveboolean compileActive(NordshriftCompilerBridge nordshrift, SLCompiler compiler)Compile the active editor. .sst routes through NordshriftCompilerBridge; .sleela goes straight to the SLeeLa compiler. Diagnostics are published to the panel; the return value honors the IDE failure rule.
saveActiveboolean saveActive(String revision)The host persisted the active editor at `revision`; mark it clean.
onDocumentChangeint onDocumentChange(String documentId, String revision, int realChanges)An OS watch call reported `realChanges`; refresh the active editor's view (full reconciliation of each stale buffer is a host re-read).
rearmWatchvoid rearmWatch()Re-register the OS watch over the current bounded (1..14) watch set.
syncCommandStatevoid syncCommandState()Keep command availability honest: Save/Save All reflect dirty state; Compile/Run require an active editor.
tabGroupSLIdeTabGroup tabGroup()Accessors for the host/presentation layer.
projectTreeSLIdeProjectTree projectTree()No description in source.
commandRegistrySLIdeCommandRegistry commandRegistry()No description in source.
diagnosticsPanelSLIdeDiagnosticsPanel diagnosticsPanel()No description in source.
hostWindowSLGuiWindow hostWindow()No description in source.

SLIdeWorkbenchUI #sleela 2.5 (lib/ide-workbench/SLIdeWorkbenchUI.sleela)

SLIdeWorkbenchUI class

Defines SLIdeWorkbenchUI — the IDE shell rendered as a REAL SleelaUI graphical interface, built on the /lib/gui support structure. The shell's chrome (the window, header bar, and the Open/Compile/Save/Close command buttons) is expressed as an SLGuiApp DOM: each command is a DOM button node with an onClick handler bound through the event bus, so a real click flows widget -> SLGuiHostAdapter -> SLGuiEvent -> handler -> command, instead of ad-hoc .clicked() polling. The rich content controls (the SLTreeView project explorer, the SLNotebook of SLTextView code editors, and the SLLoadingIndicator) are specialised SleelaUI widgets mounted into the DOM's body/status container handles. SLGuiApp runs the loop (pump -> poll activations -> dispatch -> reconcile); this class only reads the command handler latches and acts. The IDE is the first full consumer of the event/DOM/support stack. Family: ide-workbench. The GUI is SleelaUI driven through the lib/gui DOM; SLeeLa owns meaning and dispatch.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
appSLGuiApp appthe /lib/gui support structure (app+window+DOM)
domSLGuiDom domNo description in source.
openHSLGuiHandler openHCommand handlers (bound through the DOM event bus; polled for latches).
compileHSLGuiHandler compileHNo description in source.
saveHSLGuiHandler saveHNo description in source.
closeHSLGuiHandler closeHNo description in source.
treeSelectHSLGuiHandler treeSelectHContent-control handlers: tree selection (CHANGE) and tab switch (TOGGLE), routed through the SAME event bus so the content controls are DOM-driven too, not polled ad hoc.
tabChangeHSLGuiHandler tabChangeHNo description in source.
treeSLTreeView treeRich content controls mounted into DOM container handles.
notebookSLNotebook notebookNo description in source.
statusSLStatusBar statusNo description in source.
loadingSLLoadingIndicator loadingNo description in source.
menuBarSLIdeMenuBar menuBarNo description in source.
toolbarSLIdeToolbar toolbarNo description in source.
languageBarSLIdeLanguageBar languageBarNo description in source.
tabsSLIdeTabGroup tabsState models (the SLeeLa logic layer).
projectModelSLIdeProjectTree projectModelNo description in source.
diagnosticsSLIdeDiagnosticsPanel diagnosticsNo description in source.
editorsSLTextView[] editorsPer-page editor views, index-aligned with the notebook pages.
editorCountint editorCountNo description in source.
lastTreeSelectionString lastTreeSelectiondebounce: only fire CHANGE when it moves
readyboolean readyNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bootboolean boot(String appId, String title, int width, int height, String root)Build and show the IDE. Returns true when the toolkit came up.
buildChromeDomvoid buildChromeDom()The window chrome, expressed as a DOM: a header bar holding a brand label, a spacer, and the four command buttons. Each command button binds an onClick handler through the event bus.
buildContentvoid buildContent()The body + status, as DOM containers whose mounted widget handles host the specialised controls (tree / notebook / status bar / loading indicator).
adoptSLWidget adopt(int handle)Wrap a raw widget handle as an SLWidget so specialised controls can attach.
isReadyboolean isReady()No description in source.
addTreeNodevoid addTreeNode(String id, String label, String parentId, boolean isLeaf)No description in source.
rebuildTreevoid rebuildTree()No description in source.
openFileint openFile(String documentId, String path, String[] lines, int lineCount, String revision)No description in source.
activeEditorViewSLTextView activeEditorView()No description in source.
pollCommandsboolean pollCommands()Read the command handler latches once per loop turn and act. The latches are raised by SLGuiHostAdapter when the real buttons fire, so there is no direct widget polling here. Returns false when Close emptied the tabs.
dispatchMenuActionvoid dispatchMenuAction(int action)No description in source.
dispatchToolbarActionvoid dispatchToolbarAction(int action)No description in source.
routeContentEventsvoid routeContentEvents()Translate raw content-control state changes into DOM events on the bus. A tab click raises TOGGLE("ide-notebook", <index>); a tree row selection raises CHANGE("ide-tree", <nodeId>). The host adapter already turns command button presses into events; these two controls are specialised widgets, so the shell bridges their state into the same dispatch path here.
onTreeActivateString onTreeActivate(String nodeId)Handler for a tree CHANGE: the selected id is the DOM event's value. Returns the id of a selected leaf (a file the host should open), else null.
onTabChangevoid onTabChange(String indexStr)Handler for a notebook TOGGLE: focus the newly-active tab.
onOpenSelectedString onOpenSelected()Backward-compatible entry: the Open command selects whatever the tree has.
onCompilevoid onCompile()No description in source.
onSavevoid onSave()No description in source.
onCloseboolean onClose()No description in source.
syncDirtyFromEditorvoid syncDirtyFromEditor()No description in source.
publishDiagnosticvoid publishDiagnostic(String documentId, int severity, int line, int col, String message)No description in source.
finishCompilevoid finishCompile()No description in source.
reportCompileProgressvoid reportCompileProgress(double fraction)No description in source.
runLoopint runLoop()Run via the SLGuiApp support loop: each turn it pumps the toolkit, lets SLGuiHostAdapter poll widget activations into the event bus (firing the bound command handlers), and reconciles the DOM. We then read the command latches and advance IDE state.
refreshStatusvoid refreshStatus()No description in source.
rearmWatchCheckvoid rearmWatchCheck()No description in source.
fileNameString fileName(String path)No description in source.
lastIndexOfint lastIndexOf(String s, String ch)No description in source.
joinLinesString joinLines(String[] lines, int n)No description in source.
currentRevisionString currentRevision()No description in source.
parseIntint parseInt(String s)Parse a non-negative integer from a decimal string ("" / null -> -1).
digitint digit(String ch)No description in source.
shutdownvoid shutdown()No description in source.

SLPackage #sleela 2.5 (lib/ide-workbench/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for ide-workbench.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean available()No description in source.