keyList.addColumn(i18n.tr("Alias-Name"),"alias");
keyList.addColumn(i18n.tr("Format"),"format");
ContextMenu ctx = new ContextMenu();
// Kontext: Details.
ctx.addItem(new CheckedContextMenuItem(i18n.tr("�ffnen"),new Action()
{
public void handleAction(Object context) throws ApplicationException
{
if (context == null)
return;
try
{
GUI.startView(Detail.class,context);
}
catch (Exception e)
{
Logger.error("error while loading rdh key",e);
}
}
},"document-open.png"));
ctx.addItem(new ContextMenuItem(i18n.tr("Neuer Schl�ssel..."),new Action() {
public void handleAction(Object context) throws ApplicationException {startCreate();}
},"document-new.png"));
ctx.addItem(new ContextMenuItem(i18n.tr("Schl�ssel importieren..."),new Action()
{
public void handleAction(Object context) throws ApplicationException
{
startImport();
}
},"stock_keyring.png"));
// Kontext: Aktivieren/Deaktivieren
ctx.addItem(ContextMenuItem.SEPARATOR);
ctx.addItem(new ActivateKey(true));
ctx.addItem(new ActivateKey(false));
ctx.addItem(ContextMenuItem.SEPARATOR);
ctx.addItem(new CheckedContextMenuItem(i18n.tr("L�schen..."), new Action() {
public void handleAction(Object context) throws ApplicationException
{
try
{
String q = i18n.tr("Wollen Sie diesen Schl�ssel wirklich l�schen?\n" +