james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r1522427 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
Date Thu, 12 Sep 2013 04:59:48 GMT
Author: dongxu
Date: Thu Sep 12 04:59:48 2013
New Revision: 1522427

URL: http://svn.apache.org/r1522427
Log:
fixed issue#82, make display message first and then mark etc.

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java?rev=1522427&r1=1522426&r2=1522427&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
Thu Sep 12 04:59:48 2013
@@ -39,6 +39,7 @@ import org.apache.hupa.client.rf.GetMess
 import org.apache.hupa.client.rf.MoveMessageRequest;
 import org.apache.hupa.client.ui.MessagesCellTable;
 import org.apache.hupa.client.ui.ToolBarView;
+<<<<<<< HEAD
 import org.apache.hupa.shared.domain.DeleteMessageByUidAction;
 import org.apache.hupa.shared.domain.DeleteMessageResult;
 import org.apache.hupa.shared.domain.GenericResult;
@@ -289,6 +290,8 @@ import org.apache.hupa.client.ui.WidgetD
 =======
 >>>>>>> replace with IsWidget
 import org.apache.hupa.shared.data.ImapFolderImpl;
+=======
+>>>>>>> fixed issue#82, make display message first and then mark etc.
 import org.apache.hupa.shared.domain.DeleteMessageByUidAction;
 import org.apache.hupa.shared.domain.DeleteMessageResult;
 import org.apache.hupa.shared.domain.GetMessageDetailsAction;
@@ -298,7 +301,6 @@ import org.apache.hupa.shared.domain.Mes
 import org.apache.hupa.shared.domain.User;
 import org.apache.hupa.shared.events.DeleteClickEvent;
 import org.apache.hupa.shared.events.DeleteClickEventHandler;
-import org.apache.hupa.shared.events.ExpandMessageEvent;
 import org.apache.hupa.shared.events.RefreshMessagesEvent;
 import org.apache.hupa.shared.events.RefreshMessagesEventHandler;
 import org.apache.hupa.shared.events.RefreshUnreadEvent;
@@ -341,16 +343,14 @@ public class MessageListActivity extends
 					req.get(action).fire(new Receiver<GetMessageDetailsResult>() {
 						@Override
 						public void onSuccess(GetMessageDetailsResult response) {
-							eventBus.fireEvent(new ExpandMessageEvent(user, new ImapFolderImpl(folderName), event
-									.getValue(), response.getMessageDetails()));
+							MessagePlace place = new MessagePlace(folderName + AbstractPlace.SPLITTER
+									+ event.getValue().getUid());
+							pc.goTo(place);
 							display.getGrid().getSelectionModel().setSelected(event.getValue(), true);
 							toolBar.enableAllTools(true);
 							ToolBarView.Parameters p = new ToolBarView.Parameters(user, folderName, event.getValue(),
 									response.getMessageDetails());
 							toolBar.setParameters(p);
-							MessagePlace place = new MessagePlace(folderName + AbstractPlace.SPLITTER
-									+ event.getValue().getUid());
-							pc.goTo(place);
 							display.refresh();
 							hc.hideTopLoading();
 							eventBus.fireEvent(new RefreshUnreadEvent());



---------------------------------------------------------------------
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