public CreateCommand(String label, Process process, Point location) {
    super(label);
    this.process = process;
    this.location = location;

    if (process.isGridEnabled()) {
      // replace the component to set it on the grid if it's enabled
      int tempVar = location.x / TalendEditor.GRID_SIZE;
      this.location.x = tempVar * TalendEditor.GRID_SIZE;
      tempVar = location.y / TalendEditor.GRID_SIZE;
      this.location.y = tempVar * TalendEditor.GRID_SIZE;
    }
  }