pt = new Point(rectangle.x, rectangle.y);
}
if (request.getNewObjectType() == DiagramNodeTemplate.class) {
DiagramNodeTemplate nodeTemplate = (DiagramNodeTemplate)request.getNewObject();
if (nodeTemplate.getDiagramEditorPart() == this.presentation.part()) {
cmd = new CreateNodeCommand(this.presentation, nodeTemplate, pt);
}
}
else if (request.getNewObjectType() == ISelection.class) {
// DND from project explorer
ISelection selection = (ISelection)request.getNewObject();