code: @Override
    public void dragged(IEventMotion e) {
      if(paletteDiagram.getSelectedCommand() == ECommands.SELECT.toString()) {
        if(!itWasDragging) {
          itWasDragging = asmDiagramUml.tryToDragging(e.getX(), e.getY());
        }
        else {
          asmDiagramUml.tryToDragging(e.getX(), e.getY());
        }
      }
    }
docs: Move an UML element
  or change path of a relation