public class CoreModule extends MockComponentManager implements ModuleEx
Disposable.Parent
ELEMENT_TYPE, EMPTY_ARRAY
Constructor and Description |
---|
CoreModule(Disposable parentDisposable,
Project project,
java.lang.String moduleFilePath) |
addComponent, createListener, dispose, getComponent, getDisposed, getExtensionArea, getMessageBus, getPicoContainer, getService, isDisposed, registerComponentInDisposer, registerService, registerService, registerService, registerService
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionsModificationCount, init, moduleAdded, projectClosed, projectOpened, rename
clearOption, getModuleTypeName, isDisposed, 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
dispose
public CoreModule(Disposable parentDisposable, Project project, java.lang.String moduleFilePath)
protected void initModuleExtensions()
protected <T> void addModuleExtension(ExtensionPointName<T> name, T extension)
protected ModuleScopeProvider createModuleScopeProvider()
protected PathMacroManager createModulePathMacroManager(Project project)
protected ModuleFileIndex createModuleFileIndex()
public void clearScopesCache()
clearScopesCache
in interface ModuleEx
public VirtualFile getModuleFile()
Module
VirtualFile
for the module .iml file.getModuleFile
in interface Module
public java.lang.String getModuleFilePath()
Module
getModuleFilePath
in interface Module
public Project getProject()
Module
getProject
in interface Module
public java.lang.String getName()
Module
public void setOption(java.lang.String optionName, java.lang.String optionValue)
public java.lang.String getOptionValue(java.lang.String optionName)
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 included