}
@Override
public Object[] getElements(Object element) {
if (element instanceof Node) {
Node node = (Node) element;
return node.getChildren();
}
return null;
}
@Override
public Object[] getChildren(Object element) {
if (element instanceof Node) {
Node node = (Node) element;
return node.getChildren();
}
return null;
}
@Override
public Object getParent(Object element) {
if (element instanceof Node) {
Node node = (Node) element;
return node.getParent();
}
return null;
}
@Override