Exemplo n.º 1
0
  /** Does pre-miraclegrue generation tasks */
  protected boolean configureGenerator() {
    if (!parentGenerator.runSanityChecks()) {
      return false;
    }

    int idx = prefPulldown.getSelectedIndex();

    if (idx == -1) {
      return false;
    }

    MgProfile p = ProfileUtils.getListedProfile(prefPulldown.getModel(), profiles, idx);
    Base.preferences.put("lastGeneratorProfileSelected", p.toString());
    parentGenerator.profile = p.getFullPath();
    MiracleGrueGenerator.setSelectedProfile(p.toString());
    return true;
  }