{
Object model = ((EditPart)selectedObjectsIterator.next()).getModel();
if (model instanceof Node)
{
Node node = (Node) model;
//if node is CompexMember, then get its parent
if (node instanceof ComplexMember)
{
node = node.getParents().iterator().next();
}
selectedObjects.add(node);
}
}