public final class ConversionContextImpl extends java.lang.Object implements ConversionContext
| Constructor and Description |
|---|
ConversionContextImpl(java.nio.file.Path projectPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModuleSettingspublic ConversionContextImpl(java.nio.file.Path projectPath)
public ObjectLongHashMap<java.lang.String> getAllProjectFiles() throws CannotConvertException
CannotConvertExceptionpublic boolean isConversionAlreadyPerformed(ConverterProvider provider)
public java.io.File getProjectBaseDir()
getProjectBaseDir in interface ConversionContextpublic java.io.File[] getModuleFiles()
getModuleFiles in interface ConversionContextpublic java.util.List<java.nio.file.Path> getModulePaths()
throws CannotConvertException
getModulePaths in interface ConversionContextCannotConvertExceptionpublic java.lang.String expandPath(java.lang.String path,
ModuleSettingsImpl moduleSettings)
public java.lang.String expandPath(java.lang.String path)
expandPath in interface ConversionContextpublic java.lang.String collapsePath(java.lang.String path)
collapsePath in interface ConversionContextpublic static java.lang.String collapsePath(java.lang.String path,
ModuleSettingsImpl moduleSettings)
public java.util.Collection<java.io.File> getLibraryClassRoots(java.lang.String name,
java.lang.String level)
getLibraryClassRoots in interface ConversionContextpublic java.util.List<java.io.File> getClassRoots(Element libraryElement,
ModuleSettingsImpl moduleSettings)
public ComponentManagerSettings getCompilerSettings()
getCompilerSettings in interface ConversionContextpublic ComponentManagerSettings getProjectRootManagerSettings()
getProjectRootManagerSettings in interface ConversionContextpublic ComponentManagerSettings getModulesSettings()
getModulesSettings in interface ConversionContextpublic ComponentManagerSettings getProjectFileVersionSettings()
public ComponentManagerSettingsImpl createProjectSettings(java.lang.String fileName)
createProjectSettings in interface ConversionContextfileName - name of the file under .idea directory which contains the settings. For ipr-based storage format the settings will
be loaded from ipr-fileComponentManagerSettings instance which can be used to read and modify the settings or null if the configuration
file cannot be loadedpublic java.io.File getSettingsBaseDir()
getSettingsBaseDir in interface ConversionContextnull for file-based schemepublic java.io.File getProjectFile()
getProjectFile in interface ConversionContextpublic ProjectSettings getProjectSettings() throws CannotConvertException
getProjectSettings in interface ConversionContextCannotConvertExceptionpublic RunManagerSettingsImpl getRunManagerSettings() throws CannotConvertException
getRunManagerSettings in interface ConversionContextCannotConvertExceptionpublic WorkspaceSettings getWorkspaceSettings() throws CannotConvertException
getWorkspaceSettings in interface ConversionContextCannotConvertExceptionpublic ModuleSettings getModuleSettings(java.nio.file.Path moduleFile) throws CannotConvertException
getModuleSettings in interface ConversionContextCannotConvertExceptionpublic ModuleSettings getModuleSettings(java.lang.String moduleName)
getModuleSettings in interface ConversionContextpublic java.util.List<java.nio.file.Path> getNonExistingModuleFiles()
public StorageScheme getStorageScheme()
getStorageScheme in interface ConversionContextpublic java.nio.file.Path getWorkspaceFile()
public void saveFiles(java.util.Collection<? extends java.nio.file.Path> files,
java.util.List<? extends ConversionRunner> usedRunners)
throws java.io.IOException
java.io.IOExceptionpublic com.intellij.conversion.impl.SettingsXmlFile getOrCreateFile(java.nio.file.Path file)
throws CannotConvertException
CannotConvertExceptionpublic ProjectLibrariesSettingsImpl getProjectLibrariesSettings() throws CannotConvertException
getProjectLibrariesSettings in interface ConversionContextCannotConvertExceptionpublic ArtifactsSettingsImpl getArtifactsSettings() throws CannotConvertException
getArtifactsSettings in interface ConversionContextCannotConvertException