this.node = node;
LayoutConstraint layout = node.getLayoutConstraint();
if (!(layout instanceof Location))
// TODO
throw new RuntimeException("wrong layout constrait"); //$NON-NLS-1$
Location location = (Location) layout;
EObject eObject = node.getElement();
if (!(eObject instanceof EClass))
// TODO
throw new RuntimeException("wrong EObject"); //$NON-NLS-1$
EClass eClass = (EClass) eObject;
xPos = location.getX() * GMF_TO_OO_FACTOR;
yPos = location.getY() * GMF_TO_OO_FACTOR;
name = eClass.getName();
for (EAttribute eAttribute : eClass.getEAttributes()) {
System.out.println(eAttribute);
}