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);
}
Aggregations