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;
* @param client Client instance to call back
*/
public static void addItemsToList (final List<SelectableMenuItem> 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
// 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
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);
}