public interface ProjectEx extends Project
Modifier and Type | Interface and Description |
---|---|
static interface |
ProjectEx.ProjectSaved
Consider using only and only if
com.intellij.configurationStore.SettingsSavingComponent is not possible to use. |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME_FILE |
DIRECTORY_STORE_FOLDER
Modifier and Type | Method and Description |
---|---|
Disposable |
getEarlyDisposable()
Disposable that will be disposed right after container started to be disposed. |
default boolean |
isLight() |
void |
setProjectName(java.lang.String name) |
getBaseDir, getBasePath, getLocationHash, getName, getPresentableUrl, getProjectFile, getProjectFilePath, getWorkspaceFile, isDefault, isInitialized, isOpen, save
createError, createError, getComponent, getComponent, getComponent, getComponentInstancesOfType, getComponentInstancesOfType, getComponents, getDisposed, getExtensionArea, getExtensions, getMessageBus, getPicoContainer, getService, getService, getServiceIfCreated, hasComponent, instantiateClass, instantiateClassWithConstructorInjection, instantiateExtensionWithPicoContainerOnlyIfNeeded, isDisposed, isDisposedOrDisposeInProgress, logError
getUserData, putUserData
dispose
static final java.lang.String NAME_FILE
void setProjectName(java.lang.String name)
default boolean isLight()
Disposable getEarlyDisposable()
Disposable
that will be disposed right after container started to be disposed.
Use it to dispose something that need to be disposed very early, e.g. Alarm
.
Or, only and only in unit test mode, if you need to publish something to message bus during dispose.
In unit test mode light project is not disposed, but this disposable is disposed for each test.
So, you don't need to have another disposable and can use this one instead.
Dependent Disposable.dispose()
may be called in any thread.
Implementation of Disposable.dispose()
must be self-contained and isolated (getting services is forbidden, publishing to message bus is allowed only in tests).