Skip to content

Extensions

Basic Usage

var extensions = require("core/v4/extensions");
var response = require("http/v4/response");

var mainmenu = [];
var menuExtensions = extensions.getExtensions("ide-menu");
for (var i = 0; i < menuExtensions.length; i++) {
    var module = menuExtensions[i];
    menuExtension = require(module);
    var menu = menuExtension.getMenu();
    mainmenu.push(menu);
}
response.println(JSON.stringify(mainmenu));

Functions


Function Description Returns
getExtensionPoints() Returns an array of the extension points names array of string
getExtensions(extensionPoint) Returns an array of the extensions names for the specified extension point array of string
Back to top