예제 #1
0
 @Override
 public List<TreeViewPath<AbilityFacade>> getPaths(AbilityFacade pobj) {
   List<TreeViewPath<AbilityFacade>> list = new ArrayList<TreeViewPath<AbilityFacade>>();
   List<String> types = pobj.getTypes();
   if (types.isEmpty()) {
     list.add((new TreeViewPath<AbilityFacade>(pobj)));
   } else {
     for (String type : types) {
       list.add(new TreeViewPath<AbilityFacade>(pobj, type));
     }
   }
   return list;
 }
예제 #2
0
 @Override
 public List<TreeViewPath<AbilityFacade>> getPaths(AbilityFacade pobj) {
   return Collections.singletonList(
       new TreeViewPath<AbilityFacade>(pobj, pobj.getSourceForNodeDisplay()));
 }