}
final int ft = KeyFormat.FEATURE_CREATE;
KeyFormat[] formats = RDHKeyFactory.getKeyFormats(ft);
KeyFormat format = null;
if (formats != null && formats.length == 1)
{
format = formats[0];
Logger.info("only have one key format, that supports creation of new keys, choosing this one automatically: " + format.getName());
}
else
{
Logger.info("asking user which key format to be used");
KeyFormatDialog d = new KeyFormatDialog(KeyFormatDialog.POSITION_CENTER,ft);
format = (KeyFormat) d.open();
}
addKey(format.createKey(f));
Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Schl�sseldatei erfolgreich erstellt"),StatusBarMessage.TYPE_SUCCESS));
}
catch (OperationCanceledException oce)
{
Logger.warn("operation cancelled; " + oce.getMessage());