topBar.getChildren().add(toolBar);
}
@Override
protected void processTheme(String name, MCommand switchCommand, MParameter themeId, String iconURI) {
MHandledToolItem toolItem = MMenuFactory.INSTANCE.createHandledToolItem();
toolItem.setTooltip(name);
toolItem.setCommand(switchCommand);
toolItem.getParameters().add(themeId);
if (iconURI != null) {
toolItem.setIconURI(iconURI);
}
toolBar.getChildren().add(toolItem);
}