package jetbrains.mps.baseLanguage.unitTest.execution.tool;

/*Generated by MPS */

import com.intellij.ide.util.PropertiesComponent;

public final class UnitTestOptions {
  public static String PREFIX = "jetbrains.mps.baseLanguage.unitTest.plugin";
  private static final String HIDE_PASSED = PREFIX + ".hidePassed";
  private static final String SELECT_FIRST_FAILED = PREFIX + ".selectFirstFailed";
  private static final String TRACK_RUNNING = PREFIX + ".trackRunning";

  private UnitTestOptions() {
  }

  public static boolean isHidePassed() {
    return PropertiesComponent.getInstance().getBoolean(HIDE_PASSED, false);
  }

  public static void setHidePassed(boolean hidePassed) {
    PropertiesComponent.getInstance().setValue(HIDE_PASSED, hidePassed + "");
  }

  public static boolean isSelectFirstFailed() {
    return PropertiesComponent.getInstance().getBoolean(SELECT_FIRST_FAILED, false);
  }

  public static void setSelectFirstFailed(boolean selectFirstFailed) {
    PropertiesComponent.getInstance().setValue(SELECT_FIRST_FAILED, selectFirstFailed + "");
  }

  public static boolean isTrackRunning() {
    return PropertiesComponent.getInstance().getBoolean(TRACK_RUNNING, false);
  }

  public static void setTrackRunning(boolean trackRunning) {
    PropertiesComponent.getInstance().setValue(TRACK_RUNNING, trackRunning + "");
  }
}
