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, wait
getModuleSettings
public ConversionContextImpl(java.nio.file.Path projectPath)
public ObjectLongHashMap<java.lang.String> getAllProjectFiles() throws CannotConvertException
CannotConvertException
public boolean isConversionAlreadyPerformed(ConverterProvider provider)
public java.io.File getProjectBaseDir()
getProjectBaseDir
in interface ConversionContext
public java.io.File[] getModuleFiles()
getModuleFiles
in interface ConversionContext
public java.util.List<java.nio.file.Path> getModulePaths() throws CannotConvertException
getModulePaths
in interface ConversionContext
CannotConvertException
public java.lang.String expandPath(java.lang.String path, ModuleSettingsImpl moduleSettings)
public java.lang.String expandPath(java.lang.String path)
expandPath
in interface ConversionContext
public java.lang.String collapsePath(java.lang.String path)
collapsePath
in interface ConversionContext
public 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 ConversionContext
public java.util.List<java.io.File> getClassRoots(Element libraryElement, ModuleSettingsImpl moduleSettings)
public ComponentManagerSettings getCompilerSettings()
getCompilerSettings
in interface ConversionContext
public ComponentManagerSettings getProjectRootManagerSettings()
getProjectRootManagerSettings
in interface ConversionContext
public ComponentManagerSettings getModulesSettings()
getModulesSettings
in interface ConversionContext
public ComponentManagerSettings getProjectFileVersionSettings()
public ComponentManagerSettingsImpl createProjectSettings(java.lang.String fileName)
createProjectSettings
in interface ConversionContext
fileName
- 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 ConversionContext
null
for file-based schemepublic java.io.File getProjectFile()
getProjectFile
in interface ConversionContext
public ProjectSettings getProjectSettings() throws CannotConvertException
getProjectSettings
in interface ConversionContext
CannotConvertException
public RunManagerSettingsImpl getRunManagerSettings() throws CannotConvertException
getRunManagerSettings
in interface ConversionContext
CannotConvertException
public WorkspaceSettings getWorkspaceSettings() throws CannotConvertException
getWorkspaceSettings
in interface ConversionContext
CannotConvertException
public ModuleSettings getModuleSettings(java.nio.file.Path moduleFile) throws CannotConvertException
getModuleSettings
in interface ConversionContext
CannotConvertException
public ModuleSettings getModuleSettings(java.lang.String moduleName)
getModuleSettings
in interface ConversionContext
public java.util.List<java.nio.file.Path> getNonExistingModuleFiles()
public StorageScheme getStorageScheme()
getStorageScheme
in interface ConversionContext
public 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.IOException
public com.intellij.conversion.impl.SettingsXmlFile getOrCreateFile(java.nio.file.Path file) throws CannotConvertException
CannotConvertException
public ProjectLibrariesSettingsImpl getProjectLibrariesSettings() throws CannotConvertException
getProjectLibrariesSettings
in interface ConversionContext
CannotConvertException
public ArtifactsSettingsImpl getArtifactsSettings() throws CannotConvertException
getArtifactsSettings
in interface ConversionContext
CannotConvertException