incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1062157 - /incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Date Sat, 22 Jan 2011 14:25:42 GMT
Author: marrs
Date: Sat Jan 22 14:25:42 2011
New Revision: 1062157

URL: http://svn.apache.org/viewvc?rev=1062157&view=rev
Log:
ACE-112 It turned out the UI was listening to all incoming change events, regardless of the
session ID included in the event. Added a filter to only listen to events of its own session.

Modified:
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java?rev=1062157&r1=1062156&r2=1062157&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Sat Jan 22 14:25:42 2011
@@ -19,7 +19,6 @@
 package org.apache.ace.webui.vaadin;
 
 import java.io.File;
-import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
@@ -40,7 +39,6 @@ import javax.xml.xpath.XPathConstants;
 import javax.xml.xpath.XPathExpressionException;
 import javax.xml.xpath.XPathFactory;
 
-import org.apache.ace.client.repository.ObjectRepository;
 import org.apache.ace.client.repository.RepositoryAdmin;
 import org.apache.ace.client.repository.RepositoryAdminLoginContext;
 import org.apache.ace.client.repository.RepositoryObject;
@@ -76,12 +74,10 @@ import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 import org.xml.sax.InputSource;
 
-import com.sun.corba.se.impl.oa.poa.AOMEntry;
 import com.vaadin.data.Item;
-import com.vaadin.data.Property.ValueChangeEvent;
 import com.vaadin.event.ItemClickEvent;
-import com.vaadin.event.Transferable;
 import com.vaadin.event.ItemClickEvent.ItemClickListener;
+import com.vaadin.event.Transferable;
 import com.vaadin.event.dd.DragAndDropEvent;
 import com.vaadin.event.dd.DropHandler;
 import com.vaadin.event.dd.TargetDetails;
@@ -89,25 +85,22 @@ import com.vaadin.event.dd.acceptcriteri
 import com.vaadin.event.dd.acceptcriteria.Or;
 import com.vaadin.terminal.Sizeable;
 import com.vaadin.terminal.UserError;
+import com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails;
+import com.vaadin.ui.AbstractSelect.VerticalLocationIs;
 import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.ComboBox;
 import com.vaadin.ui.GridLayout;
 import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.Label;
 import com.vaadin.ui.ProgressIndicator;
 import com.vaadin.ui.Table;
+import com.vaadin.ui.Table.TableTransferable;
 import com.vaadin.ui.TextField;
 import com.vaadin.ui.Upload;
-import com.vaadin.ui.VerticalLayout;
-import com.vaadin.ui.Window;
-import com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails;
-import com.vaadin.ui.AbstractSelect.VerticalLocationIs;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.Table.CellStyleGenerator;
-import com.vaadin.ui.Table.TableTransferable;
 import com.vaadin.ui.Upload.FailedEvent;
 import com.vaadin.ui.Upload.SucceededEvent;
+import com.vaadin.ui.VerticalLayout;
+import com.vaadin.ui.Window;
 
 /*
 
@@ -212,7 +205,7 @@ public class VaadinClient extends com.va
         System.out.println("INIT " + this);
         
         setTheme("ace");
-        final Window main = new Window("Apache ACE - User Interface - " + this);
+        final Window main = new Window("Apache ACE (" + m_sessionID + ") " + this);
         setMainWindow(main);
         main.getContent().setSizeFull();
         
@@ -447,6 +440,7 @@ public class VaadinClient extends com.va
         m_manager.add(m_manager.createComponent()
             .setInterface(EventHandler.class.getName(), new Properties() {{
                 put(EventConstants.EVENT_TOPIC, topic);
+                put(EventConstants.EVENT_FILTER, "(" + SessionFactory.SERVICE_SID + "=" +
m_sessionID + ")");
             }})
             .setImplementation(implementation)
         );



Mime
View raw message