Property changes on: server ___________________________________________________________________ Modified: svn:ignore - target war .settings + target war .settings .classpath .project Index: server/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java =================================================================== --- server/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java (revision 1073718) +++ server/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java (working copy) @@ -48,7 +48,7 @@ private boolean exists; public MockIMAPFolder(String fullName, IMAPStore store) { - super(fullName, (DemoModeConstants.DEMO_MODE_DEFAULT_FOLDER.equals(fullName) ? '\0' : SEPARATOR), store); + super(fullName, (DemoModeConstants.DEMO_MODE_DEFAULT_FOLDER.equals(fullName) ? '\0' : SEPARATOR), store, false); } @Override @@ -345,7 +345,8 @@ return ret; } - private void checkExists() throws MessagingException { + @Override + protected void checkExists() throws MessagingException { if (exists() == false) { throw new MessagingException("Folder not exists"); } Property changes on: shared ___________________________________________________________________ Modified: svn:ignore - target .settings + target .settings .classpath .project Index: shared/src/site/site.xml =================================================================== --- shared/src/site/site.xml (revision 1073718) +++ shared/src/site/site.xml (working copy) @@ -19,8 +19,6 @@ --> - - Property changes on: widgets ___________________________________________________________________ Modified: svn:ignore - target + target .classpath .project Index: pom.xml =================================================================== --- pom.xml (revision 1073718) +++ pom.xml (working copy) @@ -31,9 +31,13 @@ org.apache.james james-project - 1.3 + 1.5 + + 3.0.2 + + shared client @@ -66,10 +70,6 @@ - maven-repos - http://repo2.maven.org/maven2/ - - maven2-repository.dev.java.net Java.net Repository for Maven http://download.java.net/maven/2/ @@ -119,33 +119,33 @@ - 2.0.3 + 2.1.1 + org.apache.maven.plugins maven-deploy-plugin - 2.4 + 2.5 + org.apache.maven.plugins maven-site-plugin - 2.0-beta-7 + 3.0-beta-3 - maven-javadoc-plugin - 2.4 - - + org.apache.maven.plugins maven-jxr-plugin - 2.1 + 2.2 + org.apache.maven.plugins maven-pmd-plugin - 2.4 + 2.5 - 1.4 + 1.5 /rulesets/basic.xml /rulesets/controversial.xml @@ -162,12 +162,14 @@ 1.0-alpha-3 + org.apache.maven.plugins maven-jar-plugin - 2.2 + 2.3.1 + org.apache.maven.plugins maven-compiler-plugin - 2.0.2 + 2.3.2 1.5 1.5 @@ -175,16 +177,19 @@ + org.apache.maven.plugins maven-remote-resources-plugin - 1.0 + 1.1 + org.apache.maven.plugins maven-surefire-plugin - 2.4.3 + 2.7.2 + org.apache.maven.plugins maven-surefire-report-plugin - 2.4.3 + 2.7.2 org.codehaus.mojo @@ -200,8 +205,194 @@ + + org.codehaus.mojo + gwt-maven-plugin + 2.1.0-1 + + + org.apache.maven.plugins + maven-war-plugin + 2.1.1 + + + + org.apache.maven.plugins + maven-site-plugin + 3.0-beta-3 + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.2 + + true + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.3.1 + + + + cim + dependencies + dependency-convergence + dependency-management + distribution-management + help + index + issue-tracking + license + mailing-list + modules + plugin-management + plugins + project-team + scm + summary + + + + + + org.apache.maven.plugins + maven-pmd-plugin + + true + utf-8 + 100 + 1.5 + true + + + + org.apache.maven.plugins + maven-surefire-report-plugin + + -Xmx1024m -XX:MaxPermSize=512m + true + + + + org.apache.rat + apache-rat-plugin + + false + + + **/target/**/* + **/cobertura.ser + + **/.classpath + **/.project + **/.settings/**/* + + **/*.iml + **/*.ipr + **/*.iws + + **/MANIFEST.MF + + + + + org.codehaus.mojo + versions-maven-plugin + + + + dependency-updates-report + plugin-updates-report + property-updates-report + + + + + + org.codehaus.mojo + findbugs-maven-plugin + + ${project.reporting.outputDirectory}/../xref + ${project.reporting.outputDirectory}/../xref-test + + true + Max + true + true + + + + org.codehaus.mojo + versions-maven-plugin + + + + dependency-updates-report + plugin-updates-report + property-updates-report + + + + + + org.codehaus.mojo + cobertura-maven-plugin + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.7 + + 512m + 1g + true + + + note + a + NOTE + + + todo + a + TODO + + + warning + a + WARNING + + + 1.5 + + + + + aggregate + test-aggregate + + + + + + org.codehaus.mojo + dashboard-maven-plugin + + + + + @@ -248,7 +439,7 @@ javax.mail mail - 1.4.1 + 1.4.4 org.cobogw.gwt @@ -256,34 +447,31 @@ 1.3 - net.customware.gwt.dispatch - + net.customware.gwt.dispatch gwt-dispatch 1.0.0 - - com.google.gwt.inject - gin - - + + com.google.gwt.inject + gin + + - com.googlecode.gwt.inject - + com.googlecode.gwt.inject gin 1.0 - net.customware.gwt.presenter - + net.customware.gwt.presenter gwt-presenter 1.1.0-replace-SNAPSHOT - - com.google.gwt.inject - gin - - + + com.google.gwt.inject + gin + + com.google.gwt @@ -313,17 +501,17 @@ commons-io commons-io - 1.4 + 2.0.1 com.google.code.guice guice - 2.0 + 2.0.1 com.google.code.guice guice-servlet - 2.0 + 2.0.1 com.google.gwt @@ -346,13 +534,13 @@ junit junit - 4.1 + 4.8.2 test org.easymock easymock - 2.5.2 + 3.0 test Property changes on: client ___________________________________________________________________ Modified: svn:ignore - target .gwt-tmp tomcat + target .gwt-tmp tomcat .classpath .project Index: client/src/main/java/com/google/gwt/gen2/event/shared/HandlerManager.java =================================================================== --- client/src/main/java/com/google/gwt/gen2/event/shared/HandlerManager.java (revision 0) +++ client/src/main/java/com/google/gwt/gen2/event/shared/HandlerManager.java (revision 0) @@ -0,0 +1,188 @@ +/* + * Copyright 2008 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.gen2.event.shared; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.gen2.event.shared.AbstractEvent.Type; + +/** + * Manager responsible for adding handlers to event sources and firing those + * handlers on passed in events. + * + * @deprecated use the com.google.gwt.event.shared classes instead + */ +@Deprecated +public class HandlerManager extends com.google.gwt.event.shared.HandlerManager { + // Used to optimize the JavaScript handler container structure. + static int EXPECTED_HANDLERS = 5; + + private static final boolean useJs = GWT.isScript(); + private static int index = -EXPECTED_HANDLERS; + + static int createKeyIndex() { + // Need to leave space for the size and the unflattened list if we end up + // needing it. + index += EXPECTED_HANDLERS + 2; + return index; + } + + // Only one of JsHandlerRegistry and JavaHandlerRegistry are live at once. + private final JsHandlerRegistry javaScriptRegistry; + private final JavaHandlerRegistry javaRegistry; + + // + private final Object source; + + /** + * Creates a handler manager with the given source. + * + * @param source the event source + */ + public HandlerManager(Object source) { + super(source); + if (useJs) { + javaScriptRegistry = JsHandlerRegistry.create(); + javaRegistry = null; + } else { + javaRegistry = new JavaHandlerRegistry(); + javaScriptRegistry = null; + } + this.source = source; + } + + /** + * Adds a handle. + * + * @param The type of handler. + * @param type the event type associated with this handler + * @param handler the handler + * @return the handler registration, can be stored in order to remove the + * handler later + */ + public HandlerRegistration addHandler( + AbstractEvent.Type type, final HandlerType handler) { + if (useJs) { + javaScriptRegistry.addHandler(type, handler); + } else { + javaRegistry.addHandler(type, handler); + } + return new HandlerRegistration(this, type, handler); + } + + /** + * Clears all the handlers associated with the given type. + * + * @param type the type + */ + public void clearHandlers(Type type) { + if (useJs) { + javaScriptRegistry.clearHandlers(type); + } else { + javaRegistry.clearHandlers(type); + } + } + + /** + * Fires the given event to the handlers listening to the event's type. + * + * @param event the event + */ + public void fireEvent(AbstractEvent event) { + Object oldSource = event.getSource(); + event.setSource(source); + if (useJs) { + javaScriptRegistry.fireEvent(event); + } else { + javaRegistry.fireEvent(event); + } + if (oldSource == null) { + // This was my event, so I should kill it now that I'm done. + event.kill(); + } else { + // Restoring the source for the next handler to use. + event.setSource(oldSource); + } + } + + /** + * Gets the handler at the given index. + * + * @param the event handler type + * @param index the index + * @param type the handler's event type + * @return the given handler + */ + public HandlerType getHandler( + AbstractEvent.Type type, int index) { + if (useJs) { + return (HandlerType) javaScriptRegistry.getHandler(type, index); + } else { + return (HandlerType) javaRegistry.getHandler(type, index); + } + } + + /** + * Gets the number of handlers listening to the event type. + * + * @param type the event type + * @return the number of registered handlers + */ + public int getHandlerCount(Type type) { + if (useJs) { + return javaScriptRegistry.getHandlerCount(type); + } else { + return javaRegistry.getHandlerCount(type); + } + } + + /** + * Gets the source for events fired from this manager. + * + * @return the source + */ + public Object getSource() { + return source; + } + + /** + * Are there handlers in this manager listening to the given event type? + * + * @param type the event type + * @return are handlers listening on the given event type + */ + public boolean isEventHandled(Type type) { + return getHandlerCount(type) > 0; + } + + /** + * Removes the given handler from the specified event type. Normally, + * applications should call {@link HandlerRegistration#removeHandler()} + * instead. This method is provided primary to support deprecated APIS. + * + * @param handler type + * + * @param type the event type + * @param handler the handler + */ + public void removeHandler( + AbstractEvent.Type type, final HandlerType handler) { + if (useJs) { + javaScriptRegistry.removeHandler(type, handler); + } else { + javaRegistry.removeHandler(type, handler); + } + } +} Property changes on: client/src/main/java/com/google/gwt/gen2/event/shared/HandlerManager.java ___________________________________________________________________ Added: svn:eol-style + native Index: client/src/main/webapp/WEB-INF/web.xml =================================================================== --- client/src/main/webapp/WEB-INF/web.xml (revision 1073718) +++ client/src/main/webapp/WEB-INF/web.xml (working copy) @@ -5,11 +5,6 @@ - - - Hupa.html - - maxSize @@ -23,6 +18,20 @@ --> + + guiceFilter + com.google.inject.servlet.GuiceFilter + + + + guiceFilter + /* + + + + org.apache.hupa.server.guice.GuiceServletConfig + + remoteLoggingService @@ -34,17 +43,9 @@ /hupa/logging - - guiceFilter - com.google.inject.servlet.GuiceFilter - + + + Hupa.html + - - guiceFilter - /* - - - - org.apache.hupa.server.guice.GuiceServletConfig - Index: client/war/WEB-INF/web.xml =================================================================== --- client/war/WEB-INF/web.xml (revision 1073718) +++ client/war/WEB-INF/web.xml (working copy) @@ -5,11 +5,6 @@ - - - Hupa.html - - maxSize @@ -23,6 +18,20 @@ --> + + guiceFilter + com.google.inject.servlet.GuiceFilter + + + + guiceFilter + /* + + + + org.apache.hupa.server.guice.GuiceServletConfig + + remoteLoggingService @@ -34,17 +43,9 @@ /hupa/logging - - guiceFilter - com.google.inject.servlet.GuiceFilter - + + + Hupa.html + - - guiceFilter - /* - - - - org.apache.hupa.server.guice.GuiceServletConfig - Index: client/README.txt =================================================================== --- client/README.txt (revision 0) +++ client/README.txt (revision 0) @@ -0,0 +1,2 @@ +About the com.google.gwt.gen2.event.shared.HandlerManager: +See http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=340 Property changes on: client/README.txt ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native