public abstract class PreloadingActivity
extends java.lang.Object
An activity to be executed in background on IDE startup. It may load some classes or other configuration so that when something (e.g. an action) is invoked the first time in the UI, there's no visible pause while required stuff is being lazily loaded.
Preloading activities should not have any side effects except for improving subsequent performance, so that if they are not executed for any reason, the behavior of the IDE remains the same.
Being eager and unspecific, preloading should be considered last resort in optimization. Please prefer other ways of speeding up things, by e.g. reducing the amount of classloading and initialization necessary when some functionality is invoked the first time.
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<PreloadingActivity> |
EP_NAME |
Constructor and Description |
---|
PreloadingActivity() |
Modifier and Type | Method and Description |
---|---|
abstract void |
preload(ProgressIndicator indicator)
Perform the preloading.
|
public static final ExtensionPointName<PreloadingActivity> EP_NAME
public abstract void preload(ProgressIndicator indicator)
indicator
- a progress indicator for the background preloading process.
Canceled if the application has exited.
Long actions should periodically perform indicator.checkCanceled()
.