use of org.freeplane.core.ui.menubuilders.generic.PhaseProcessor in project freeplane by freeplane.
the class MenuBuilderIntegrationTest method buildJMenu.
private Entry buildJMenu(String content) {
final Entry buildMenuStructure = XmlEntryStructureBuilder.buildMenuStructure(content);
final RecursiveMenuStructureProcessor actionBuilder = new RecursiveMenuStructureProcessor();
actionBuilder.setDefaultBuilder(new ActionFinder(freeplaneActions));
new PhaseProcessor().withPhase(ACTIONS, actionBuilder).withPhase(UI, recursiveMenuStructureBuilder).build(buildMenuStructure);
return buildMenuStructure;
}
Aggregations