X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fmxchange%2Faddressbook%2Fmenu%2FAddressbookMenu.java;h=7cae2eea92bef59a9ead5cfe56a2df84bb8b6a96;hb=015fbc4cc69c0bdbb644da6bab24133290e9ca68;hp=7f7cc3535e8b27cbce25fdd000fbc0f92598a7ea;hpb=8eae125e777194074b19ed1b7fb5ad2be4c3a461;p=addressbook-swing.git diff --git a/src/org/mxchange/addressbook/menu/AddressbookMenu.java b/src/org/mxchange/addressbook/menu/AddressbookMenu.java index 7f7cc35..7cae2ee 100644 --- a/src/org/mxchange/addressbook/menu/AddressbookMenu.java +++ b/src/org/mxchange/addressbook/menu/AddressbookMenu.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,32 +18,25 @@ package org.mxchange.addressbook.menu; import java.text.MessageFormat; import java.util.List; -import org.apache.logging.log4j.Logger; import org.mxchange.addressbook.client.AddressbookClient; import org.mxchange.addressbook.menu.item.SelectableMenuItem; import org.mxchange.jcore.client.Client; /** * Utility class for menu structure - * + *

* @author Roland Haeder */ public class AddressbookMenu extends BaseMenu { /** * Copies entries for given type into the menu list - * + *

* @param menuList Menu list for later showing * @param menuType Type of menu * @param client Client instance to call back */ public static void addItemsToList (final List menuList, final String menuType, final Client client) { - // Get logger - Logger log = new AddressbookMenu().getLogger(); - - // Trace call - log.trace(MessageFormat.format("menuList={0},menuType={1},client={2} - CALLED!", menuList, menuType, client)); //NOI18N - // Some instances must be set if (null == menuList) { // Abort here @@ -62,9 +55,6 @@ public class AddressbookMenu extends BaseMenu { // Get list size int size = menuList.size(); - // Debug message - log.debug(MessageFormat.format("Adding menu for '{0}' (old size: '{1}') ...", menuType, size)); //NOI18N - // Depends on type switch (menuType) { case "main": // Main menu //NOI18N @@ -94,7 +84,7 @@ public class AddressbookMenu extends BaseMenu { break; default: // Not supported - log.error(MessageFormat.format("Menu type '{0}' ont supported", menuType)); //NOI18N + System.err.println(MessageFormat.format("Menu type '{0}' ont supported", menuType)); //NOI18N System.exit(1); }