public class ModuleImpl extends ComponentManagerImpl implements ModuleEx
Disposable.Parent
ELEMENT_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, wait
clearOption, getModuleTypeName, setModuleType
createError, createError, getComponent, getComponent, getComponent, getComponentInstancesOfType, getComponentInstancesOfType, getComponents, getDisposed, getExtensionArea, getExtensions, getMessageBus, getPicoContainer, getService, getService, getServiceIfCreated, hasComponent, instantiateClass, instantiateClassWithConstructorInjection, instantiateExtensionWithPicoContainerOnlyIfNeeded, isDisposedOrDisposeInProgress, logError
getUserData, putUserData
public 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()
Module
isDisposed
in interface ComponentManager
isDisposed
in interface Module
protected boolean isComponentSuitable(ComponentConfig componentConfig)
public VirtualFile getModuleFile()
Module
VirtualFile
for the module .iml file.getModuleFile
in interface Module
public void rename(java.lang.String newName, boolean notifyStorage)
public java.lang.String getModuleFilePath()
Module
getModuleFilePath
in interface Module
public void dispose()
Disposable
dispose
in interface Disposable
protected ContainerDescriptor getContainerDescriptor(IdeaPluginDescriptorImpl pluginDescriptor)
public void projectOpened()
projectOpened
in interface ModuleEx
public void projectClosed()
projectClosed
in interface ModuleEx
public Project getProject()
Module
getProject
in interface Module
public java.lang.String getName()
Module
public void moduleAdded()
moduleAdded
in interface ModuleEx
public void setOption(java.lang.String key, java.lang.String value)
public java.lang.String getOptionValue(java.lang.String key)
getOptionValue
in interface Module
public GlobalSearchScope getModuleScope()
getModuleScope
in interface Module
public GlobalSearchScope getModuleScope(boolean includeTests)
getModuleScope
in interface Module
includeTests
- whether to include test sourcepublic GlobalSearchScope getModuleWithLibrariesScope()
getModuleWithLibrariesScope
in interface Module
public GlobalSearchScope getModuleWithDependenciesScope()
getModuleWithDependenciesScope
in interface Module
public GlobalSearchScope getModuleContentScope()
getModuleContentScope
in interface Module
public GlobalSearchScope getModuleContentWithDependenciesScope()
getModuleContentWithDependenciesScope
in interface Module
public GlobalSearchScope getModuleWithDependenciesAndLibrariesScope(boolean includeTests)
getModuleWithDependenciesAndLibrariesScope
in interface Module
includeTests
- whether test source and test dependencies should be includedpublic GlobalSearchScope getModuleWithDependentsScope()
getModuleWithDependentsScope
in interface Module
public GlobalSearchScope getModuleTestsWithDependentsScope()
getModuleTestsWithDependentsScope
in interface Module
Module.getModuleWithDependentsScope()
, but with test source/resources includedpublic GlobalSearchScope getModuleRuntimeScope(boolean includeTests)
getModuleRuntimeScope
in interface Module
includeTests
- whether test source and test dependencies should be includedpublic void clearScopesCache()
clearScopesCache
in interface ModuleEx
public java.lang.String toString()
public long getOptionsModificationCount()
getOptionsModificationCount
in interface ModuleEx