james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@apache.org
Subject svn commit: r911502 - in /james/hupa/trunk: .project client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
Date Thu, 18 Feb 2010 18:02:17 GMT
Author: manolo
Date: Thu Feb 18 18:02:16 2010
New Revision: 911502

URL: http://svn.apache.org/viewvc?rev=911502&view=rev
Log:
fixed: update suggestion boxes in MessageSendView when contacts are updated

Modified:
    james/hupa/trunk/.project
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java

Modified: james/hupa/trunk/.project
URL: http://svn.apache.org/viewvc/james/hupa/trunk/.project?rev=911502&r1=911501&r2=911502&view=diff
==============================================================================
--- james/hupa/trunk/.project (original)
+++ james/hupa/trunk/.project Thu Feb 18 18:02:16 2010
@@ -6,6 +6,11 @@
 	</projects>
 	<buildSpec>
 		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
 			<name>org.eclipse.jdt.core.javabuilder</name>
 			<arguments>
 			</arguments>
@@ -31,5 +36,6 @@
 		<nature>org.eclipse.jdt.core.javanature</nature>
 		<nature>com.google.gwt.eclipse.core.gwtNature</nature>
 		<nature>com.google.gdt.eclipse.core.webAppNature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
 	</natures>
 </projectDescription>

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java?rev=911502&r1=911501&r2=911502&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
Thu Feb 18 18:02:16 2010
@@ -49,6 +49,8 @@
 import org.apache.hupa.shared.data.SMTPMessage;
 import org.apache.hupa.shared.data.User;
 import org.apache.hupa.shared.events.BackEvent;
+import org.apache.hupa.shared.events.ContactsUpdatedEvent;
+import org.apache.hupa.shared.events.ContactsUpdatedEventHandler;
 import org.apache.hupa.shared.events.FlashEvent;
 import org.apache.hupa.shared.events.FolderSelectionEvent;
 import org.apache.hupa.shared.events.FolderSelectionEventHandler;
@@ -118,8 +120,6 @@
         super(display, eventBus);
         this.display = display;
         this.dispatcher = dispatcher;
-        
-
     }
     
     public Display display;
@@ -175,6 +175,11 @@
                 reset();
             }
         }));
+        registerHandler(eventBus.addHandler(ContactsUpdatedEvent.TYPE, new ContactsUpdatedEventHandler()
{
+            public void onContactsUpdated(ContactsUpdatedEvent event) {
+                display.fillContactList(event.getContacts());
+            }
+        }));        
         registerHandler(display.getSendClick().addClickHandler(sendClickHandler));
         registerHandler(display.getBackButtonClick().addClickHandler(new ClickHandler() {
             public void onClick(ClickEvent event) {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message