Example #1
0
  public static void writeWindowsRegistry(String localPath) throws Exception {

    WinRegistry.writeStringValue(
        WinRegistry.HKEY_CURRENT_USER, "SOFTWARE\\StackSync", "FilterFolder", localPath);

    WinRegistry.writeStringValue(
        WinRegistry.HKEY_CURRENT_USER, "SOFTWARE\\StackSync", "EnableOverlay", "1");
  }
Example #2
0
  public static void setOverlayActivity(boolean active) throws Exception {

    String value;
    if (active) {
      value = "1";
    } else {
      value = "0";
    }

    WinRegistry.writeStringValue(
        WinRegistry.HKEY_CURRENT_USER, "SOFTWARE\\StackSync", "EnableOverlay", value);
  }