fFigureDatatypeAssociationNameLabelFigure = new WrappingLabel();
fFigureDatatypeAssociationNameLabelFigure.setText("Name");
this.add(fFigureDatatypeAssociationNameLabelFigure);
DatatypeAssociation d = (DatatypeAssociation) ((View) datatypeassociationeditpart
.getModel()).getElement();
d.setName("d1");
((Property) d.getOwner()).setAssociationEnd(d);
((Property) d.getOwner()).setName("p1");
for (int i = 0; i < d.getAttribute().size(); i++) {
((Property) d.getOwner().getAttribute().get(i))
.setAssociationEnd(d);
((Property) d.getOwner().getAttribute().get(i)).setName("p2");
}
for (int i = 0; i < d.getAssociationEnd().size(); ++i) {
((Property) d.getAssociationEnd().get(i)).setContainer(d
.getContainer());
}
}