package droplauncher.mvc.controller;

import adakite.utils.AdakiteUtils;
import droplauncher.mvc.model.Model;
import droplauncher.mvc.view.View;
import droplauncher.starcraft.Race;
import javafx.beans.property.SimpleStringProperty;
import javafx.event.ActionEvent;

public class Controller {

  private Model model;
  private View view;

  public Controller() {

  }

  public SimpleStringProperty botRankProperty() {
    return this.model.botRankProperty();
  }

  public void setModel(Model model) {
    this.model = model;
  }

  public void setView(View view) {
    this.view = view;
  }

  public void handle(ActionEvent event) {
    updateView();
  }

  public void updateView() {
    this.view.update();
  }

  public String getBwapiDll() {
    return this.model.getBWHeadless().getBwapiDll();
  }

  public String getBotFile() {
    String botFile;
    if (!AdakiteUtils.isNullOrEmpty(this.model.getBWHeadless().getBotDll())) {
      botFile = this.model.getBWHeadless().getBotDll();
    } else if (!AdakiteUtils.isNullOrEmpty(this.model.getBWHeadless().getBotClient())) {
      botFile = this.model.getBWHeadless().getBotClient();
    } else {
      botFile = "";
    }
    return botFile;
  }

  public String getBotName() {
    return this.model.getBWHeadless().getBotName();
  }

  public Race getBotRace() {
    return this.model.getBWHeadless().getBotRace();
  }

  private void startBWHeadless() {
    this.model.startBWHeadless();
  }

  private void stopBWHeadless() {
    this.model.stopBWHeadless();
  }

}

@@ -178,59 +178,8 @@
 ce;%0A
-import javafx.beans.property.SimpleStringProperty;%0A
 impo
@@ -314,104 +314,8 @@
  %7D%0A%0A
-  public SimpleStringProperty botRankProperty() %7B%0A    return this.model.botRankProperty();%0A  %7D%0A%0A
   pu

Remove SimpleStringProperty