com.microsoft.tfs.core.config
Class RegistryUtils

java.lang.Object
  extended by com.microsoft.tfs.core.config.RegistryUtils

public abstract class RegistryUtils
extends java.lang.Object

A collection methods for using the Windows registry to load and store core configuration settings.

Thread-safety:
thread-safe

Field Summary
static java.lang.String VISUAL_STUDIO_KEY_ROOT_PATH
          The path of the root registry key for settings for this version of Visual Studio.
 
Constructor Summary
RegistryUtils()
           
 
Method Summary
static com.microsoft.tfs.jni.RegistryKey openOrCreateRootUserRegistryKey()
          Gets the current user's registry key for settings for this version of Visual Studio (in RootKey.HKEY_CURRENT_USER).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISUAL_STUDIO_KEY_ROOT_PATH

public static final java.lang.String VISUAL_STUDIO_KEY_ROOT_PATH
The path of the root registry key for settings for this version of Visual Studio.

Constant Field Value:
"Software\\Microsoft\\VisualStudio\\12.0"
See Also:
Constant Field Values
Constructor Detail

RegistryUtils

public RegistryUtils()
Method Detail

openOrCreateRootUserRegistryKey

public static com.microsoft.tfs.jni.RegistryKey openOrCreateRootUserRegistryKey()
Gets the current user's registry key for settings for this version of Visual Studio (in RootKey.HKEY_CURRENT_USER).

Throws RuntimeException if called from a non-Windows platform.

Returns:
the RegistryKey or null if it did not exist and could not be created


© 2015 Microsoft. All rights reserved.