Search in sources :

Example 1 with NewCertificateDialog

use of com.microsoft.azuretools.core.ui.commoncontrols.NewCertificateDialog in project azure-tools-for-java by Microsoft.

the class WANewCertificate method onExecute.

public Object onExecute(ExecutionEvent event) throws ExecutionException {
    try {
        NewCertificateDialogData data = new NewCertificateDialogData();
        /*
			 * third parameter is jdkPath
			 * as its toolbar button, do not refer any project for JDK path
			 * just pass empty string.
			 */
        NewCertificateDialog dialog = new NewCertificateDialog(PluginUtil.getParentShell(), data, "");
        // Open the dialog
        dialog.open();
    } catch (Exception e) {
        PluginUtil.displayErrorDialogAndLog(PluginUtil.getParentShell(), Messages.newCertDlgCrtErTtl, Messages.newCertMsg, e);
        Activator.getDefault().log(Messages.newCertMsg, e);
    }
    return null;
}
Also used : NewCertificateDialogData(com.microsoft.azuretools.core.ui.commoncontrols.NewCertificateDialogData) NewCertificateDialog(com.microsoft.azuretools.core.ui.commoncontrols.NewCertificateDialog) ExecutionException(org.eclipse.core.commands.ExecutionException)

Aggregations

NewCertificateDialog (com.microsoft.azuretools.core.ui.commoncontrols.NewCertificateDialog)1 NewCertificateDialogData (com.microsoft.azuretools.core.ui.commoncontrols.NewCertificateDialogData)1 ExecutionException (org.eclipse.core.commands.ExecutionException)1