public class ProjectFromSourcesBuilderImpl extends ProjectImportBuilder implements ProjectFromSourcesBuilder
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectFromSourcesBuilderImpl.ProjectConfigurationUpdater |
EXTENSIONS_POINT_NAME
Constructor and Description |
---|
ProjectFromSourcesBuilderImpl(WizardContext context,
ModulesProvider modulesProvider) |
getCurrentProject, getFileToImport, getTitle, isUpdate, setUpdate
cleanup, commit, createProject, isOpenProjectSettingsAfter, isSuitableSdk, validate
public ProjectFromSourcesBuilderImpl(WizardContext context, ModulesProvider modulesProvider)
public java.util.Set<java.lang.String> getExistingModuleNames()
getExistingModuleNames
in interface ProjectFromSourcesBuilder
public java.util.Set<java.lang.String> getExistingProjectLibraryNames()
getExistingProjectLibraryNames
in interface ProjectFromSourcesBuilder
public WizardContext getContext()
getContext
in interface ProjectFromSourcesBuilder
public void setBaseProjectPath(java.lang.String contentRootPath)
public java.lang.String getBaseProjectPath()
getBaseProjectPath
in interface ProjectFromSourcesBuilder
public void setupProjectStructure(MultiMap<ProjectStructureDetector,DetectedProjectRoot> roots)
public java.util.Collection<DetectedProjectRoot> getProjectRoots(ProjectStructureDetector detector)
getProjectRoots
in interface ProjectFromSourcesBuilder
public java.lang.String getName()
getName
in class ProjectImportBuilder
public javax.swing.Icon getIcon()
getIcon
in class ProjectImportBuilder
public java.util.List getList()
getList
in class ProjectImportBuilder
public boolean isMarked(java.lang.Object element)
isMarked
in class ProjectImportBuilder
public void setList(java.util.List list) throws ConfigurationException
setList
in class ProjectImportBuilder
ConfigurationException
public void setOpenProjectSettingsAfter(boolean on)
setOpenProjectSettingsAfter
in class ProjectImportBuilder
public void setFileToImport(java.lang.String path)
setFileToImport
in class ProjectImportBuilder
public java.util.List<Module> commit(Project project, ModifiableModuleModel model, ModulesProvider modulesProvider)
commit
in class ProjectImportBuilder
public java.util.List<Module> commit(Project project, ModifiableModuleModel model, ModulesProvider modulesProvider, ModifiableArtifactModel artifactModel)
commit
in class ProjectImportBuilder
public java.util.Collection<ProjectDescriptor> getSelectedDescriptors()
public void addConfigurationUpdater(ProjectFromSourcesBuilderImpl.ProjectConfigurationUpdater updater)
public boolean hasRootsFromOtherDetectors(ProjectStructureDetector thisDetector)
hasRootsFromOtherDetectors
in interface ProjectFromSourcesBuilder
public void setupModulesByContentRoots(ProjectDescriptor projectDescriptor, java.util.Collection<? extends DetectedProjectRoot> roots)
setupModulesByContentRoots
in interface ProjectFromSourcesBuilder
public static java.lang.String getPackagePrefix(DetectedSourceRoot srcRoot)
public ProjectDescriptor getProjectDescriptor(ProjectStructureDetector detector)
getProjectDescriptor
in interface ProjectFromSourcesBuilder
public boolean isSuitableSdkType(SdkTypeId sdkTypeId)
isSuitableSdkType
in class ProjectBuilder