public void setConfigurationDirParameters(
      final boolean newUseDefault, final String newConfigurationDirectory) {
    final String defaultPath = IdeaSubversionConfigurationDirectory.getPath();
    final String oldEffectivePath =
        isUseDefaultConfiguation() ? defaultPath : getConfigurationDirectory();
    final String newEffectivePath = newUseDefault ? defaultPath : newConfigurationDirectory;

    boolean directoryChanged =
        !Comparing.equal(getConfigurationDirectory(), newConfigurationDirectory);
    if (directoryChanged) {
      setConfigurationDirectory(newConfigurationDirectory);
    }
    boolean usageChanged = isUseDefaultConfiguation() != newUseDefault;
    if (usageChanged) {
      setUseDefaultConfiguation(newUseDefault);
    }

    if (directoryChanged || usageChanged) {
      if (!Comparing.equal(oldEffectivePath, newEffectivePath)) {
        clear();
      }
    }
  }
 private void setConfigurationDirectory(String path) {
   myConfigurationDirectory = path;
   File dir =
       path == null ? new File(IdeaSubversionConfigurationDirectory.getPath()) : new File(path);
   SVNConfigFile.createDefaultConfiguration(dir);
 }
 public String getConfigurationDirectory() {
   if (myConfigurationDirectory == null || isUseDefaultConfiguation()) {
     myConfigurationDirectory = IdeaSubversionConfigurationDirectory.getPath();
   }
   return myConfigurationDirectory;
 }