Package com.intellij.openapi.application.ex

Examples of com.intellij.openapi.application.ex.ApplicationEx


public class ApplicationRestarterImpl implements ApplicationRestarter {

    @Override
    public void restart(final Boolean askBeforeRestart) {
        final ApplicationEx app = ApplicationManagerEx.getApplicationEx();
        if (app.isRestartCapable()) {
            if (!askBeforeRestart || (userWantsToRestart())) {
                app.restart();
            }
        } else {
            if (!askBeforeRestart || (userWantsToShutdown())) {
                app.exit(true);
            }
        }
    }
View Full Code Here


        return true;
      }
    };
    step.setDefaultOptionIndex(defaultOptionIndex);

    final ApplicationEx app = ApplicationManagerEx.getApplicationEx();
    return app == null || !app.isUnitTestMode() ? new ListPopupImpl(step) : new MockConfirmation(step, yesText);
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.application.ex.ApplicationEx

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.