use of org.whole.lang.queries.model.Name in project whole by wholeplatform.
the class QueriesContentAssistVisitor method allFeatureNames.
private boolean allFeatureNames(SortedSet<String> fNames, String actualFName) {
ActionsUIEntityFactory aef = ActionsUIEntityFactory.instance;
QueriesEntityFactory qef = QueriesEntityFactory.instance;
GroupAction featurenamesGroup = aef.createGroupAction();
featurenamesGroup.setFillStrategy(aef.createHierarchical(aef.createDistinctPrefix(), aef.createSize(10)));
featurenamesGroup.getText().setValue("queries.featurenames");
Actions actions = aef.createActions(0);
for (String fName : fNames) {
if (fName.equals(actualFName))
continue;
Name prototype = qef.createName(fName);
actions.wAdd(aef.createReplaceDifferentTemplateAction(prototype, fName));
}
featurenamesGroup.setActions(actions);
return mergeResult(featurenamesGroup);
}
Aggregations