public abstract class StartupManager
extends java.lang.Object
StartupActivity
Constructor and Description |
---|
StartupManager() |
Modifier and Type | Method and Description |
---|---|
static StartupManager |
getInstance(Project project)
Returns the startup manager instance for the specified project.
|
abstract boolean |
postStartupActivityPassed() |
abstract void |
registerPostStartupActivity(java.lang.Runnable runnable)
Registers an activity that is performed during project load after the "Loading Project"
progress bar is displayed.
|
abstract void |
registerPostStartupDumbAwareActivity(java.lang.Runnable runnable)
Registers an
DumbAware activity that is performed during project load, after the "Loading Project"
progress bar is displayed, in a pooled thread. |
void |
registerPreStartupActivity(java.lang.Runnable runnable)
Deprecated.
Do not use.
|
abstract void |
registerStartupActivity(java.lang.Runnable runnable)
Registers an activity that is performed during project load while the "Loading Project"
progress bar is displayed.
|
abstract void |
runAfterOpened(java.lang.Runnable runnable)
Registers activity that is executed after project loaded.
|
abstract void |
runWhenProjectIsInitialized(java.lang.Runnable runnable)
Executes the specified runnable immediately if invoked from AWT thread and the initialization of the current project
is complete; otherwise, registers it as a post-startup activity.
|
public static StartupManager getInstance(Project project)
project
- the project for which the instance should be returned.@Deprecated public void registerPreStartupActivity(java.lang.Runnable runnable)
public abstract void registerStartupActivity(java.lang.Runnable runnable)
runnable
- the activity to execute.public abstract void registerPostStartupActivity(java.lang.Runnable runnable)
registerPostStartupDumbAwareActivity(java.lang.Runnable)
if possible.runnable
- the activity to execute.StartupActivity.POST_STARTUP_ACTIVITY
public abstract void registerPostStartupDumbAwareActivity(java.lang.Runnable runnable)
DumbAware
activity that is performed during project load, after the "Loading Project"
progress bar is displayed, in a pooled thread.runnable
- the activity to execute.StartupActivity.POST_STARTUP_ACTIVITY
public abstract void runAfterOpened(java.lang.Runnable runnable)
public abstract boolean postStartupActivityPassed()
public abstract void runWhenProjectIsInitialized(java.lang.Runnable runnable)
runnable
- the activity to execute.ModalityState
,
Application.invokeLater(Runnable)