Search in sources :

Example 1 with ActionFinder

use of org.freeplane.core.ui.menubuilders.action.ActionFinder 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;
}
Also used : Entry(org.freeplane.core.ui.menubuilders.generic.Entry) RecursiveMenuStructureProcessor(org.freeplane.core.ui.menubuilders.generic.RecursiveMenuStructureProcessor) PhaseProcessor(org.freeplane.core.ui.menubuilders.generic.PhaseProcessor) ActionFinder(org.freeplane.core.ui.menubuilders.action.ActionFinder)

Aggregations

ActionFinder (org.freeplane.core.ui.menubuilders.action.ActionFinder)1 Entry (org.freeplane.core.ui.menubuilders.generic.Entry)1 PhaseProcessor (org.freeplane.core.ui.menubuilders.generic.PhaseProcessor)1 RecursiveMenuStructureProcessor (org.freeplane.core.ui.menubuilders.generic.RecursiveMenuStructureProcessor)1