public class AuditPreferencesMigrator extends ExtensionMigrator
ExtensionMigrator.AdjustedObjectisSelected, ROOT_TAG, SETTINGSJDEV_HOME_DIR, SYSTEM_DIR| Constructor and Description |
|---|
AuditPreferencesMigrator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addToProductPreferences()
Determines whether the migrated preferences should be added into the
Preferences object or remain separate.
|
protected ExtensionMigrator.AdjustedObject[] |
adjustObject(java.lang.String key,
java.lang.Object object)
Unset any migrated values that are at the default values.
|
protected java.util.Collection<java.lang.String> |
getClassNamesToIgnoreErrorsOn()
Provides a way to suppress errors from Object2Dom when the preferences
file is read and contains preferences that are not in the same class loader
as the preferences you are migrating.
|
protected java.lang.String |
getExtensionID()
Get the extension ID for which settings should be persisted.
|
protected java.lang.ClassLoader |
getMigratorClassLoader()
Override to provide a class loader other than the one that
supplies the subclass of ExtensionMigrator.
|
protected java.util.List |
getSettingKeys()
Get a complete list of all key values for persisting in the ClientSetting
object associated with an extension.
|
protected java.io.File |
getSourceFile(java.io.File sourceDir)
Get the source File from the given directory.
|
canMigrate, copyPreferenceObject, copyPreferenceObjectsAsIs, getDescription, getDestFile, getIde1013ExtensionDirectory, getMigrationCategories, getRootTag, getSourceFileOrJDevExtrasFile, isSelected, loadClass, migrate, setSelectedprotected java.util.List getSettingKeys()
ExtensionMigratorgetSettingKeys in class ExtensionMigratorprotected java.lang.String getExtensionID()
ExtensionMigratorgetExtensionID in class ExtensionMigratorprotected java.lang.ClassLoader getMigratorClassLoader()
ExtensionMigratorgetMigratorClassLoader in class ExtensionMigratorprotected java.io.File getSourceFile(java.io.File sourceDir)
getSourceFile in class ExtensionMigratorsourceDir - the source directory.protected boolean addToProductPreferences()
ExtensionMigratoraddToProductPreferences in class ExtensionMigratorprotected ExtensionMigrator.AdjustedObject[] adjustObject(java.lang.String key, java.lang.Object object)
adjustObject in class ExtensionMigratorprotected java.util.Collection<java.lang.String> getClassNamesToIgnoreErrorsOn()
ExtensionMigratorgetClassNamesToIgnoreErrorsOn in class ExtensionMigrator