org.eclipse.cdt.internal.ui.preferences.formatter
Class ProfileVersioner

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.preferences.formatter.ProfileVersioner
All Implemented Interfaces:
IProfileVersioner

public class ProfileVersioner
extends java.lang.Object
implements IProfileVersioner


Field Summary
static java.lang.String CODE_FORMATTER_PROFILE_KIND
           
static int CURRENT_VERSION
           
static int VERSION_1
           
 
Constructor Summary
ProfileVersioner()
           
 
Method Summary
 int getCurrentVersion()
           
 int getFirstVersion()
           
 java.lang.String getProfileKind()
          
static int getVersionStatus(ProfileManager.CustomProfile profile)
           
 void update(ProfileManager.CustomProfile profile)
          Update the profile to the current version number
static java.util.Map updateAndComplete(java.util.Map oldSettings, int version)
           
static void updateAndComplete(ProfileManager.CustomProfile profile)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE_FORMATTER_PROFILE_KIND

public static final java.lang.String CODE_FORMATTER_PROFILE_KIND
See Also:
Constant Field Values

VERSION_1

public static final int VERSION_1
See Also:
Constant Field Values

CURRENT_VERSION

public static final int CURRENT_VERSION
See Also:
Constant Field Values
Constructor Detail

ProfileVersioner

public ProfileVersioner()
Method Detail

getFirstVersion

public int getFirstVersion()
Specified by:
getFirstVersion in interface IProfileVersioner

getCurrentVersion

public int getCurrentVersion()
Specified by:
getCurrentVersion in interface IProfileVersioner

getProfileKind

public java.lang.String getProfileKind()

Specified by:
getProfileKind in interface IProfileVersioner

update

public void update(ProfileManager.CustomProfile profile)
Description copied from interface: IProfileVersioner
Update the profile to the current version number

Specified by:
update in interface IProfileVersioner

getVersionStatus

public static int getVersionStatus(ProfileManager.CustomProfile profile)

updateAndComplete

public static void updateAndComplete(ProfileManager.CustomProfile profile)

updateAndComplete

public static java.util.Map updateAndComplete(java.util.Map oldSettings,
                                              int version)