use of com.thecoderscorner.menu.editorui.uimodel.UIBooleanMenuItem in project tcMenu by davetcc.
the class UIBooleanMenuItemTest method generateBooleanDialog.
private UIBooleanMenuItem generateBooleanDialog() throws Exception {
MenuItem analogItem = menuTree.getMenuById(4).orElseThrow();
VariableNameGenerator vng = new VariableNameGenerator(menuTree, false);
var uiBoolItem = editorUI.createPanelForMenuItem(analogItem, menuTree, vng, mockedConsumer);
if (uiBoolItem.isEmpty())
throw new IllegalArgumentException("No menu item found");
createMainPanel(uiBoolItem);
return (UIBooleanMenuItem) uiBoolItem.get();
}
Aggregations