// Is the bundle initialized?
if (!this.isBundledInitialized()) {
// Temporary initialize default bundle
- // @TODO The enum Gender uses this
+ // TODO The enum Gender uses this
this.initBundle();
}
}
// Debug message
this.getLogger().trace("CALLED!"); //NOI18N
- // @TODO The application should be running now
+ // TODO The application should be running now
// Output introduction
this.showIntro();
this.getLogger().debug("Initializing contact manager ..."); //NOI18N
// Init contact manager with console client
- // @TODO Static initial amount of contacts
+ // TODO Static initial amount of contacts
ManageableDatabase manager = new AddressbookContactManager((Client) this);
// Set it here
// Is the menu set?
if (!(menu instanceof Menu)) {
// Not found
- // @todo Own exception?
+ // TODO Own exception?
throw new NullPointerException(MessageFormat.format("Menu '{0}' not found.", menuType)); //NOI18N
}
// 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
+ // TODO Use mask
this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getFirstName(), contact.getFamilyName()));
} else {
// Company contact
// Parent call
super.doShutdown();
- // @TODO Add other shutdown stuff
+ // TODO Add other shutdown stuff
// Trace message
this.getLogger().trace("EXIT!"); //NOI18N
// Try it!
try {
- // @TODO Rewrite this ugly switch() block
+ // TODO Rewrite this ugly switch() block
switch (choice) {
case '1':
try {
break;
default:
- // @TODO throw own exception
+ // TODO throw own exception
throw new UnhandledUserChoiceException(MessageFormat.format("Choice '{0}' not handled yet.", choice)); //NOI18N
}
} catch (final IOException | BadTokenException | CorruptedDatabaseFileException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
* @param accessKey Key to access the menu
* @param text Text to show to user
* @return A SelectableMenuItem
- * @todo Make sure the access key is unique
+ * TODO Make sure the access key is unique
*/
@Override
public SelectableMenuItem getMenuItem (final char accessKey, final String text) {
// Get manager and cast it
ManageableAddressbookContact manager = (ManageableAddressbookContact) this.getManager();
- // @TODO Get rid of this ugly switch block, too
+ // TODO Get rid of this ugly switch block, too
switch (choice) {
case 'n': // Name data
manager.doChangeNameData(contact);
break;
default:
- // @TODO throw own exception
+ // TODO throw own exception
throw new UnhandledUserChoiceException(MessageFormat.format("Choice '{0}' not handled yet.", choice)); //NOI18N
}
* Add listener which asks for confirmation, if data has been entered
* but not saved yet. The user may appriciate this ... ;-)
*
- * @TODO Unfinished
+ * TODO Unfinished
*/
this.addContact.addWindowListener(new WindowAdapter() {
/**
((ManageableAddressbookContact) self.getClient().getManager()).doEnterOwnData();
} catch (final ContactAlreadyAddedException ex) {
// Already added, log away
- // @TODO maybe output message here?
+ // TODO maybe output message here?
self.logException(ex);
} catch (final IOException | BadTokenException ex) {
// Somethind bad happened here
- // @TODO Output error message here?
+ // TODO Output error message here?
}
}
});
* Initializes "other" data panel
*
* @param dialog A JDialog instance to this components to
- * @todo Fill this with life
+ * TODO Fill this with life
*/
private void initOtherDataPanel (final JDialog dialog) {
// Trace message
// Shutdown frame
this.frame.doShutdown();
- // @TODO Add other shutdown stuff
+ // TODO Add other shutdown stuff
// Debug message
this.getLogger().trace("EXIT!"); //NOI18N
}
/**
*
* @author Roland Haeder
- * @todo After a Collection has been used in ContactManager, change to
+ * TODO After a Collection has been used in ContactManager, change to
* BaseContact
*/
public class UserContact extends BookContact implements Contact {
* @param firstName First name to be set
* @param familyName Family name to be set
* @param companyName Company name
- * @todo Add validation of data
+ * TODO Add validation of data
*/
public UserContact (final Gender gender, final String firstName, final String familyName, final String companyName) {
// Make sure all constructors are called
}
// Then add it
- // @todo Nothing is done yet!
+ // TODO Nothing is done yet!
Result<? extends Storable> result = this.doInsertDataSet();
// Debug message
* Let the user change other data
*
* @param contact Instance to change data
- * @todo Didn't handle birthday
+ * TODO Didn't handle birthday
*/
@Override
public void doChangeOtherData (final Contact contact) {
* Adds given contact to address book and flushes all entries to database
*
* @param contact Contact being added
- * @todo Add check for book size
+ * TODO Add check for book size
*/
@Override
public void registerContact (final Contact contact) {
// Check if contact is found
if (((AddressbookContactFrontend) this.getFrontend()).isContactFound(contact)) {
// Contact already added
- // @todo Do something here
+ // TODO Do something here
} else if ((contact.isOwnContact()) && (this.isOwnContactAdded())) {
// Own contact already added
- // @todo Do something
+ // TODO Do something
}
// Add contact to internal list
* Adds given contact to address book
*
* @param contact Contact being added
- * @todo Add check for book size
+ * TODO Add check for book size
*/
public void registerContact (final Contact contact);
/**
*
* @author Roland Haeder
- * @todo find better name
+ * TODO find better name
*/
public interface Menu {
// Is it there?
if (!(menu instanceof Menu)) {
// Not found
- // @todo Rewrite to exception
+ // TODO Rewrite to exception
logger.error("Menu '" + menuType + "' not found.");
System.exit(1);
}