try
{
KeyFormatDialog d = new KeyFormatDialog(KeyFormatDialog.POSITION_CENTER,KeyFormat.FEATURE_IMPORT);
KeyFormat format = (KeyFormat) d.open();
Logger.info("registering key, type " + format.getName() + ", " + format.getClass().getName());
addKey(format.importKey(f));
Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Schl�sseldatei erfolgreich importiert"),StatusBarMessage.TYPE_SUCCESS));
}
catch (OperationCanceledException oce)
{
Logger.warn("operation cancelled; " + oce.getMessage());