ShapePart shapePart = (ShapePart)part;
deleteShapePart(shapePart);
}
else if (part instanceof SapphireDiagramEditorPagePart)
{
SapphireDiagramEditorPagePart pagePart = (SapphireDiagramEditorPagePart)part;
List<ISapphirePart> parts = new ArrayList<ISapphirePart>();
parts.addAll(pagePart.getSelections());
for (ISapphirePart selectedPart : parts)
{
if (selectedPart instanceof DiagramConnectionPart)
{
DiagramConnectionPart connPart = (DiagramConnectionPart)selectedPart;