protected void registerScripts(JCommandPopupMenu popupmenu) {
if (configuration.getMenuTitleToPathMap().isEmpty()) {
popupmenu.addMenuButton(createNoScriptsAvailableButton());
}
else {
final ExecutionMode executionMode = getExecutionMode();
for (final Entry<String, String> entry : configuration.getMenuTitleToPathMap().entrySet()) {
popupmenu.addMenuButton(createScriptButton(entry.getKey(), entry.getValue(), executionMode));
}
}
}