if (addAction != null)
{
List<SapphireActionHandler> addHandlers = addAction.getActiveHandlers();
for (SapphireActionHandler handler : addHandlers)
{
DiagramNodeAddActionHandler nodeAddHandler = (DiagramNodeAddActionHandler)handler;
if (nodeAddHandler.getNodeTemplate().equals(this.nodeTemplate))
{
editorPart.setMouseLocation(this.location.x, this.location.y);
nodeAddHandler.execute(this.diagramPresentation);
break;
}
}
}
}