use of org.whole.lang.tests.model.TestSuite in project whole by wholeplatform.
the class TestsContentAssistVisitor method findContentAssistValues.
protected boolean findContentAssistValues(IEntity entity) {
if (!Matcher.match(TestsEntityDescriptorEnum.Name, entity) || !EntityUtils.hasParent(entity) || !Matcher.match(TestsEntityDescriptorEnum.Filter, entity.wGetParent()))
return false;
TestSuite testSuite = Matcher.findAncestor(TestsEntityDescriptorEnum.TestSuite, entity);
if (testSuite == null)
return false;
Map<String, FilterRule> rulesMap = TestsHelpers.createFilterRulesMap(testSuite);
List<Name> names = new ArrayList<Name>();
for (String key : rulesMap.keySet()) names.add(TestsEntityFactory.instance.createName(key));
setResult(names.toArray(new Name[names.size()]));
return true;
}
Aggregations