}
// image
{
// create shape for image
final Shape shape = peCreateService.createShape(containerShape, false);
// create and set image
final Image image = gaService.createImage(shape, ImageProvider.getKeyForLargeIcon(addedClass.getIconName()));
gaService.setLocationAndSize(image, imageRect.x, imageRect.y, imageRect.width, imageRect.height);
// if addedClass has no resource we add it to the resource of the diagram
// in a real scenario the business model would have its own resource
// if (addedClass.eResource() == null) {
// getDiagram().eResource().getContents().add(addedClass);
// }
}
// SHAPE WITH TEXT
{
// create shape for text
final Shape shape = peCreateService.createShape(containerShape, false);
// create and set text graphics algorithm
final Text text = gaService.createDefaultText(getDiagram(), shape, label);
Style style = StyleUtil.getStyleForCamelText(getDiagram());