From: Niki Roo Date: Sat, 2 Apr 2016 12:59:05 +0000 (+0200) Subject: Bad file uploaded! restoring. X-Git-Tag: v1.1~6 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a857dca4094360ac213ea3e333826fe75d66e530;p=jvcard.git Bad file uploaded! restoring. --- diff --git a/src/be/nikiroo/jvcard/tui/panes/ContactDetailsRaw.java b/src/be/nikiroo/jvcard/tui/panes/ContactDetailsRaw.java index 5a616b9..2de9919 100644 --- a/src/be/nikiroo/jvcard/tui/panes/ContactDetailsRaw.java +++ b/src/be/nikiroo/jvcard/tui/panes/ContactDetailsRaw.java @@ -13,10 +13,7 @@ import be.nikiroo.jvcard.resources.enums.StringId; import be.nikiroo.jvcard.tui.KeyAction; import be.nikiroo.jvcard.tui.KeyAction.DataType; import be.nikiroo.jvcard.tui.KeyAction.Mode; -import be.nikiroo.jvcard.tui.TuiLauncher; -import com.googlecode.lanterna.gui2.MultiWindowTextGUI; -import com.googlecode.lanterna.gui2.dialogs.ActionListDialogBuilder; import com.googlecode.lanterna.input.KeyType; public class ContactDetailsRaw extends MainContentList { @@ -117,41 +114,6 @@ public class ContactDetailsRaw extends MainContentList { }); // TODO: ui actions.add(new KeyAction(Mode.ASK_USER, 'a', StringId.KEY_ACTION_ADD) { - @Override - public boolean onAction() { - try{ - new ActionListDialogBuilder() - .setTitle("Action List Dialog") - .setDescription("Choose an item") - .addAction("First Item", new Runnable() { - @Override - public void run() { - // Do 1st thing... - } - }) - .addAction("Second Item", new Runnable() { - @Override - public void run() { - // Do 2nd thing... - } - }) - .addAction("Third Item", new Runnable() { - @Override - public void run() { - // Do 3rd thing... - } - }) - .build() - .showDialog( - new MultiWindowTextGUI(TuiLauncher.getScreen())); - - return true; - }catch(Exception e){ - e.printStackTrace(); - throw e; - } - } - @Override public Object getObject() { return contact;