List<Object> selected = Arrays.asList(sel.toArray());
if (selected.size() == 0 || !(selected.get(0) instanceof ContainerShapeEditPart)) {
return null;
}
PictogramLink link = ((ContainerShapeEditPart) selected.get(0)).getPictogramElement().getLink();
if (link == null) {
return null;
}
EList<EObject> businessObjects = link.getBusinessObjects();
TreeObject[] children = invisibleRoot.getChildren();
ArrayList<TreeObject> list = getSelectionFromList(businessObjects, children);
return list.toArray();
}
return null;