Revision: 1575
          http://svn.sourceforge.net/spring-rich-c/?rev=1575&view=rev
Author:   kdonald
Date:     2006-11-21 22:42:14 -0800 (Tue, 21 Nov 2006)

Log Message:
-----------
polishing

Modified Paths:
--------------
    
trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java

Modified: 
trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java
===================================================================
--- 
trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java
  2006-11-22 06:39:43 UTC (rev 1574)
+++ 
trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java
  2006-11-22 06:42:14 UTC (rev 1575)
@@ -37,13 +37,13 @@
  */
 public class ContactPropertiesDialog extends TitledPageApplicationDialog {
 
-       /** The form that displays the form model. */
+       /** The form that allows for editing the contact. */
        private Form form;
 
        /** Are we creating a new Contact or editing an existing one? */
        private boolean creatingNew = false;
 
-       /** The data store holding all our contacts. */
+       /** The data store holding all our contacts, used to add a new contact. 
*/
        private ContactDataStore dataStore;
 
        public ContactPropertiesDialog(ContactDataStore dataStore) {
@@ -87,11 +87,11 @@
                String eventType;
                if (creatingNew) {
                        eventType = LifecycleApplicationEvent.CREATED;
+                       dataStore.add(getEditingContact());
                }
                else {
                        eventType = LifecycleApplicationEvent.MODIFIED;
                }
-               dataStore.add(getEditingContact());
                // And notify the rest of the application of the change
                getApplicationContext().publishEvent(new 
LifecycleApplicationEvent(eventType, getEditingContact()));
                return true;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to