29 lines
646 B
JavaScript
29 lines
646 B
JavaScript
function newEducationActionSwitch() {
|
|
|
|
let thisObject = {
|
|
executeAction: executeAction,
|
|
initialize: initialize,
|
|
finalize: finalize
|
|
}
|
|
|
|
return thisObject
|
|
|
|
function finalize() {
|
|
|
|
}
|
|
|
|
function initialize() {
|
|
/* Nothing to initialize since a Function Library does not hold any state. */
|
|
}
|
|
|
|
async function executeAction(action) {
|
|
switch (action.name) {
|
|
case 'Launch Shell Command':
|
|
{
|
|
UI.projects.education.functionLibraries.launchshellcommand.launchshellcommand(action.node)
|
|
}
|
|
break
|
|
}
|
|
}
|
|
}
|