public final class IdeSystemMigrator extends XMLMigrator
XMLMigrator.MigrationLogger| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PROJECT |
static java.lang.String |
DEFAULT_SYSTEM_FILE |
static int |
DEFAULT_WORKSPACE |
static int |
SYSTEM_SETTINGS |
JDEV_HOME_DIR, SYSTEM_DIR| Constructor and Description |
|---|
IdeSystemMigrator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
adjustObject(java.io.File sourceDir,
java.io.File destDir,
java.lang.Object obj)
Perform any postprocessing necessary before migrating the file.
|
boolean |
canMigrate(int category,
java.io.File sourceDir)
Determine whether the settings can be migrated from the given directory.
|
java.lang.String |
getDescription(int category)
Get a one line description for a given migration category.
|
protected java.lang.String |
getFileName()
Get the filename to migrate.
|
protected java.lang.String |
getNamespaceURI()
Get the XML namespace URI.
|
static IdeSystem |
getRestoredSystem()
If a migration succeeded, then the restored system
will be non-null.
|
protected java.lang.String |
getRootTag()
Get the XML root element tag.
|
protected java.io.File |
getSourceFile(java.io.File sourceDir,
java.io.File destDir)
Get the File containing the information to be migrated.
|
java.lang.String[] |
migrate(java.io.File sourceDir,
java.io.File destDir)
Migrate the settings from a given source directory to a given destination
directory.
|
protected void |
prepareToMigrate()
Perform any preprocessing necessary before migrating the file.
|
categoryToIndex, getDestFile, getLogger, getMigrationCategories, getObjectStore, isAnyCategorySelected, isSelected, isValidCategory, readObject, setSelected, writeObjectpublic static final java.lang.String DEFAULT_SYSTEM_FILE
public static final int SYSTEM_SETTINGS
public static final int DEFAULT_PROJECT
public static final int DEFAULT_WORKSPACE
public java.lang.String getDescription(int category)
Migratorpublic boolean canMigrate(int category,
java.io.File sourceDir)
XMLMigratorcanMigrate in interface MigratorcanMigrate in class XMLMigratorprotected java.io.File getSourceFile(java.io.File sourceDir,
java.io.File destDir)
XMLMigratorgetSourceFile in class XMLMigratorprotected java.lang.String getFileName()
XMLMigratorgetFileName in class XMLMigratorprotected java.lang.String getNamespaceURI()
XMLMigratorgetNamespaceURI in class XMLMigratorprotected java.lang.String getRootTag()
XMLMigratorgetRootTag in class XMLMigratorprotected void prepareToMigrate()
XMLMigratorprepareToMigrate in class XMLMigratorprotected java.lang.Object adjustObject(java.io.File sourceDir,
java.io.File destDir,
java.lang.Object obj)
throws java.lang.Exception
XMLMigratoradjustObject in class XMLMigratorjava.lang.Exceptionpublic static IdeSystem getRestoredSystem()
public java.lang.String[] migrate(java.io.File sourceDir,
java.io.File destDir)
XMLMigratormigrate in interface Migratormigrate in class XMLMigrator