예제 #1
0
 @Override
 public boolean hasChildren(final Object parent) {
   if (parent instanceof IParent) {
     final IParent p = (IParent) parent;
     return p.hasChildren();
   }
   return false;
 }
예제 #2
0
 @Override
 public Object[] getChildren(final Object parent) {
   if (parent instanceof IParent) {
     final IParent p = (IParent) parent;
     try {
       return p.getChildren().toArray();
     } catch (final ErlModelException x) {
       if (!x.isDoesNotExist()) {
         ErlLogger.debug("element missing: " + x.getMessage());
       }
     }
   }
   return NO_CHILDREN;
 }