use of org.jcryptool.crypto.keystore.ui.KeystoreWidget.Style in project core by jcryptool.
the class SelectKeyHandler method select.
/**
* @param event
* @param )
* @return
*/
private IKeyStoreAlias select(int options, ExecutionEvent event) {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
String algorithm = null;
SelectKeyDialog dialog = new SelectKeyDialog(window.getShell(), new Style(options), algorithm);
dialog.create();
dialog.open();
IKeyStoreAlias selectionFromDialog = null;
switch(dialog.getReturnCode()) {
case Window.OK:
selectionFromDialog = dialog.getSelectedAlias();
this.cancel = false;
break;
case Window.CANCEL:
this.cancel = true;
break;
}
;
return selectionFromDialog;
}
Aggregations