use of org.palladiosimulator.editors.sirius.custom.style.rotatable.figure.listener.RotatableEditPartListener in project Palladio-Editors-Sirius by PalladioSimulator.
the class AbstractRotatableImageEditPart method createNodeShape.
/**
* @generated
*/
protected IFigure createNodeShape() {
CustomStyle imageStyle = (CustomStyle) resolveSemanticElement();
NodeImageExtension imageExtension = ExtensionActivator.getDefault().getBestImageExtension(imageStyle.getId());
primaryShape = new RotatableSVGWorkspaceImageFigure(imageExtension.getMode(), imageExtension.getTopImage(), imageExtension.getLeftImage(), imageExtension.getBottomImage(), imageExtension.getRightImage());
listener = new RotatableEditPartListener(this);
primaryShape.addFigureListener(listener);
EditPart parentEditPart = getParent();
if (parentEditPart instanceof GraphicalEditPart) {
GraphicalEditPart parentGraphicalEditPart = (GraphicalEditPart) parentEditPart;
NodeListener dEdgeEditPartListener = new PropagateFigureListenerAtConnectionFigure(listener);
parentGraphicalEditPart.addNodeListener(dEdgeEditPartListener);
}
return primaryShape;
}
Aggregations