Search in sources :

Example 1 with IMenuNameStrategy

use of org.whole.lang.ui.menu.IMenuNameStrategy in project whole by wholeplatform.

the class ActionsE4InterpreterVisitor method createFillMenuStrategy.

private IFillMenuStrategy createFillMenuStrategy(Hierarchical hierarchicalStrategy, String groupName) {
    IMenuNameStrategy nameStrategy = Matcher.match(DistinctPrefix, hierarchicalStrategy.getNamingStrategy()) ? PrefixMenuNameStrategy.instance() : FullMenuNameStrategy.instance();
    int splitSize = intEvaluate(hierarchicalStrategy.getSplitSize());
    return new HierarchicalFillMenuStrategy(nameStrategy, splitSize, groupName);
}
Also used : IMenuNameStrategy(org.whole.lang.ui.menu.IMenuNameStrategy) HierarchicalFillMenuStrategy(org.whole.lang.ui.menu.HierarchicalFillMenuStrategy)

Aggregations

HierarchicalFillMenuStrategy (org.whole.lang.ui.menu.HierarchicalFillMenuStrategy)1 IMenuNameStrategy (org.whole.lang.ui.menu.IMenuNameStrategy)1