From: Roland Haeder Date: Tue, 6 Oct 2015 12:10:44 +0000 (+0200) Subject: updated jars X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=845d9fedb8b638e76da87927a7063ca045b2ffeb;p=addressbook-swing.git updated jars Signed-off-by:Roland Häder --- diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 116c351..ceeaa29 100644 Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ diff --git a/src/org/mxchange/addressbook/client/console/ConsoleClient.java b/src/org/mxchange/addressbook/client/console/ConsoleClient.java index f8cad4b..d2c31eb 100644 --- a/src/org/mxchange/addressbook/client/console/ConsoleClient.java +++ b/src/org/mxchange/addressbook/client/console/ConsoleClient.java @@ -102,18 +102,8 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // Get translated gender as the user may want to see "Mr.", "Mrs." String gender = GenderUtils.getTranslatedGender(contact); - // Get company name - String companyName = contact.getCompanyName(); - - // If it is empty/null, then assume private contact - if ((null == companyName) || (companyName.isEmpty())) { - // Now put all together: gender, surname, family name - // TODO Use mask - this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getFirstName(), contact.getFamilyName())); - } else { - // Company contact - this.outputMessage(MessageFormat.format("Firma: {0}\nAnsprechpartner: {1} {2} {3}", companyName, gender, contact.getFirstName(), contact.getFamilyName())); - } + // Now put all together: gender, surname, family name + this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getFirstName(), contact.getFamilyName())); // Trace message this.getLogger().logTrace("EXIT!"); //NOI18N @@ -208,14 +198,10 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // Family name String familyName = manager.enterOwnFamilyName(); - // And company - String companyName = manager.enterOwnCompanyName(); - // Update contact instance contact.setGender(gender); contact.setFirstName(firstName); contact.setFamilyName(familyName); - contact.setCompanyName(companyName); // Trace message this.getLogger().logTrace("EXIT!"); //NOI18N @@ -284,11 +270,8 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // And 3rd for family name String familyName = manager.enterOwnFamilyName(); - // Company name ... - String companyName = manager.enterOwnCompanyName(); - // Construct UserContact instance - Contact contact = new UserContact(gender, firstName, familyName, companyName); + Contact contact = new UserContact(gender, firstName, familyName); // Trace message this.getLogger().logTrace(MessageFormat.format("contact={0} - EXIT!", contact)); //NOI18N