Example usage for com.intellij.openapi.wm WelcomeScreenProvider EP_NAME

List of usage examples for com.intellij.openapi.wm WelcomeScreenProvider EP_NAME

Introduction

In this page you can find the example usage for com.intellij.openapi.wm WelcomeScreenProvider EP_NAME.

Prototype

ExtensionPointName EP_NAME

To view the source code for com.intellij.openapi.wm WelcomeScreenProvider EP_NAME.

Click Source Link

Usage

From source file:com.android.tools.idea.welcome.wizard.FirstRunWizardFrameProvider.java

License:Apache License

@Override
public IdeFrame createFrame() {
    for (WelcomeScreenProvider provider : WelcomeScreenProvider.EP_NAME.getExtensions()) {
        if (provider instanceof AndroidStudioWelcomeScreenProvider && provider.isAvailable()) {
            // If we need to show the first run wizard, return a normal WelcomeFrame (which will initialize the wizard via the
            // WelcomeScreenProvider extension point).
            return new WelcomeFrame();
        }/* w  w  w .j av a  2s  .c o m*/
    }
    // Otherwise return null, and we'll go on to the normal welcome frame provider.
    return null;
}