function init(basePath) {
    var action = new RGuiAction(qsTranslate("ShowActiveLayer", "Show &Only Active"), RMainWindowQt.getMainWindow());
    action.setRequiresDocument(true);
    action.setScriptFile(basePath + "/ShowActiveLayer.js");
    action.setDefaultShortcut(new QKeySequence("y,o"));
    action.setDefaultCommands(["layershowactive", "yo"]);
    action.setGroupSortOrder(14100);
    action.setSortOrder(300);
    action.setWidgetNames(["LayerMenu", "LayerToolBar", "LayerToolsPanel", "LayerMatrixPanel"]);
}
