public class ModuleImpl extends ComponentManagerImpl implements ModuleEx
Disposable.ParentELEMENT_TYPE, EMPTY_ARRAY| Constructor and Description |
|---|
ModuleImpl(java.lang.String name,
Project project,
java.lang.String filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearScopesCache() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected ContainerDescriptor |
getContainerDescriptor(IdeaPluginDescriptorImpl pluginDescriptor) |
GlobalSearchScope |
getModuleContentScope() |
GlobalSearchScope |
getModuleContentWithDependenciesScope() |
VirtualFile |
getModuleFile()
Returns the
VirtualFile for the module .iml file. |
java.lang.String |
getModuleFilePath()
System-independent path to the .iml file or empty string if module is not persistent.
|
GlobalSearchScope |
getModuleRuntimeScope(boolean includeTests) |
GlobalSearchScope |
getModuleScope() |
GlobalSearchScope |
getModuleScope(boolean includeTests) |
GlobalSearchScope |
getModuleTestsWithDependentsScope() |
GlobalSearchScope |
getModuleWithDependenciesAndLibrariesScope(boolean includeTests) |
GlobalSearchScope |
getModuleWithDependenciesScope() |
GlobalSearchScope |
getModuleWithDependentsScope() |
GlobalSearchScope |
getModuleWithLibrariesScope() |
java.lang.String |
getName()
Returns the name of this module.
|
long |
getOptionsModificationCount() |
java.lang.String |
getOptionValue(java.lang.String key) |
Project |
getProject()
Returns the project to which this module belongs.
|
void |
init(java.lang.Runnable beforeComponentCreation) |
protected boolean |
isComponentSuitable(ComponentConfig componentConfig) |
boolean |
isDisposed()
Checks if the module instance has been disposed and unloaded.
|
boolean |
isLoaded() |
void |
moduleAdded() |
void |
projectClosed() |
void |
projectOpened() |
void |
rename(java.lang.String newName,
boolean notifyStorage) |
void |
setOption(java.lang.String key,
java.lang.String value) |
protected void |
setProgressDuringInit(ProgressIndicator indicator) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearOption, getModuleTypeName, setModuleTypecreateError, createError, getComponent, getComponent, getComponent, getComponentInstancesOfType, getComponentInstancesOfType, getComponents, getDisposed, getExtensionArea, getExtensions, getMessageBus, getPicoContainer, getService, getService, getServiceIfCreated, hasComponent, instantiateClass, instantiateClassWithConstructorInjection, instantiateExtensionWithPicoContainerOnlyIfNeeded, isDisposedOrDisposeInProgress, logErrorgetUserData, putUserDatapublic ModuleImpl(java.lang.String name,
Project project,
java.lang.String filePath)
public void init(java.lang.Runnable beforeComponentCreation)
protected void setProgressDuringInit(ProgressIndicator indicator)
public final boolean isDisposed()
ModuleisDisposed in interface ComponentManagerisDisposed in interface Moduleprotected boolean isComponentSuitable(ComponentConfig componentConfig)
public VirtualFile getModuleFile()
ModuleVirtualFile for the module .iml file.getModuleFile in interface Modulepublic void rename(java.lang.String newName,
boolean notifyStorage)
public java.lang.String getModuleFilePath()
ModulegetModuleFilePath in interface Modulepublic void dispose()
Disposabledispose in interface Disposableprotected ContainerDescriptor getContainerDescriptor(IdeaPluginDescriptorImpl pluginDescriptor)
public void projectOpened()
projectOpened in interface ModuleExpublic void projectClosed()
projectClosed in interface ModuleExpublic Project getProject()
ModulegetProject in interface Modulepublic java.lang.String getName()
Modulepublic void moduleAdded()
moduleAdded in interface ModuleExpublic void setOption(java.lang.String key,
java.lang.String value)
public java.lang.String getOptionValue(java.lang.String key)
getOptionValue in interface Modulepublic GlobalSearchScope getModuleScope()
getModuleScope in interface Modulepublic GlobalSearchScope getModuleScope(boolean includeTests)
getModuleScope in interface ModuleincludeTests - whether to include test sourcepublic GlobalSearchScope getModuleWithLibrariesScope()
getModuleWithLibrariesScope in interface Modulepublic GlobalSearchScope getModuleWithDependenciesScope()
getModuleWithDependenciesScope in interface Modulepublic GlobalSearchScope getModuleContentScope()
getModuleContentScope in interface Modulepublic GlobalSearchScope getModuleContentWithDependenciesScope()
getModuleContentWithDependenciesScope in interface Modulepublic GlobalSearchScope getModuleWithDependenciesAndLibrariesScope(boolean includeTests)
getModuleWithDependenciesAndLibrariesScope in interface ModuleincludeTests - whether test source and test dependencies should be includedpublic GlobalSearchScope getModuleWithDependentsScope()
getModuleWithDependentsScope in interface Modulepublic GlobalSearchScope getModuleTestsWithDependentsScope()
getModuleTestsWithDependentsScope in interface ModuleModule.getModuleWithDependentsScope(), but with test source/resources includedpublic GlobalSearchScope getModuleRuntimeScope(boolean includeTests)
getModuleRuntimeScope in interface ModuleincludeTests - whether test source and test dependencies should be includedpublic void clearScopesCache()
clearScopesCache in interface ModuleExpublic java.lang.String toString()
public long getOptionsModificationCount()
getOptionsModificationCount in interface ModuleEx