Connector conn = endPoint.connector;
if (conn.startEndPoint.isGluedToConnectionPoint() && conn.endEndPoint.isGluedToConnectionPoint()) {
if (conn.endEndPoint.gluedConnectionPoint.getParentWidget() == conn.startEndPoint.gluedConnectionPoint
.getParentWidget()) {
if (conn.endEndPoint == endPoint) {
conn.disconnectEnd();
} else
conn.disconnectStart();
}
}
}