Example usage for com.intellij.openapi.ui DialogWrapper CLOSE_EXIT_CODE

List of usage examples for com.intellij.openapi.ui DialogWrapper CLOSE_EXIT_CODE

Introduction

In this page you can find the example usage for com.intellij.openapi.ui DialogWrapper CLOSE_EXIT_CODE.

Prototype

int CLOSE_EXIT_CODE

To view the source code for com.intellij.openapi.ui DialogWrapper CLOSE_EXIT_CODE.

Click Source Link

Document

The default exit code for "Close" action.

Usage

From source file:com.android.tools.idea.npw.ideahost.IdeaWizardAdapter.java

License:Apache License

@Override
public void onWizardFinished(boolean success) {
    myHostWizard.close(DialogWrapper.CLOSE_EXIT_CODE, success);
}

From source file:com.intellij.ide.customize.CustomizeDownloadAndStartStepPanel.java

License:Apache License

private JButton createStartButton() {
    JButton button = new JButton(getStartName());
    button.addActionListener(new ActionListener() {
        @Override/*from   www .  j a v a2 s  . com*/
        public void actionPerformed(ActionEvent e) {
            myCustomizeIDEWizardDialog.close(DialogWrapper.CLOSE_EXIT_CODE);
            ApplicationManagerEx.getApplicationEx().restart(true);
        }
    });
    return button;
}