Пример #1
0
 protected List<String> getPropertyPath(DataContextElement element) {
   List<String> result;
   if (element.getPackage() == null) {
     result = new LinkedList<String>();
   } else {
     result = getPropertyPath(element.getPackage());
   }
   result.add(element.getName());
   return result;
 }
Пример #2
0
 protected Context findContext(DataContextElement element) {
   DataContextPackage dataContextPackage = element.getPackage();
   if (dataContextPackage instanceof DataContextRoot) {
     return (Context) dataContextPackage.eContainer();
   }
   return findContext(dataContextPackage);
 }