public class StartupManagerImpl extends StartupManagerEx
Constructor and Description |
---|
StartupManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
checkCleared() |
boolean |
postStartupActivityPassed() |
void |
prepareForNextTest() |
void |
projectOpened(ProgressIndicator indicator) |
void |
registerPostStartupActivity(java.lang.Runnable runnable)
Registers an activity that is performed during project load after the "Loading Project"
progress bar is displayed.
|
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 |
registerStartupActivity(java.lang.Runnable runnable)
Registers an activity that is performed during project load while the "Loading Project"
progress bar is displayed.
|
static void |
runActivity(java.lang.Runnable runnable) |
void |
runAfterOpened(java.lang.Runnable runnable)
Registers activity that is executed after project loaded.
|
void |
runPostStartupActivities() |
void |
runPostStartupActivitiesRegisteredDynamically() |
void |
runStartupActivities() |
void |
runWhenProjectIsInitialized(java.lang.Runnable action)
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.
|
boolean |
startupActivityPassed() |
getInstanceEx
getInstance, registerPreStartupActivity
public StartupManagerImpl(Project project)
public void registerStartupActivity(java.lang.Runnable runnable)
StartupManager
registerStartupActivity
in class StartupManager
runnable
- the activity to execute.public void registerPostStartupActivity(java.lang.Runnable runnable)
StartupManager
StartupManager.registerPostStartupDumbAwareActivity(java.lang.Runnable)
if possible.registerPostStartupActivity
in class StartupManager
runnable
- the activity to execute.StartupActivity.POST_STARTUP_ACTIVITY
public void registerPostStartupDumbAwareActivity(java.lang.Runnable runnable)
StartupManager
DumbAware
activity that is performed during project load, after the "Loading Project"
progress bar is displayed, in a pooled thread.registerPostStartupDumbAwareActivity
in class StartupManager
runnable
- the activity to execute.StartupActivity.POST_STARTUP_ACTIVITY
public boolean startupActivityPassed()
startupActivityPassed
in class StartupManagerEx
public boolean postStartupActivityPassed()
postStartupActivityPassed
in class StartupManager
public final void projectOpened(ProgressIndicator indicator)
public void runStartupActivities()
public final void runPostStartupActivities()
public final void runPostStartupActivitiesRegisteredDynamically()
public static void runActivity(java.lang.Runnable runnable)
public void runWhenProjectIsInitialized(java.lang.Runnable action)
StartupManager
runWhenProjectIsInitialized
in class StartupManager
action
- the activity to execute.ModalityState
,
Application.invokeLater(Runnable)
public void runAfterOpened(java.lang.Runnable runnable)
StartupManager
runAfterOpened
in class StartupManager
public void prepareForNextTest()
public void checkCleared()