Property changes on: server ___________________________________________________________________ Modified: svn:ignore - target war .settings + target war .settings .classpath .project Property changes on: server/src/main/java ___________________________________________________________________ Added: svn:ignore + META-INF 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) @@ -46,309 +46,431 @@ public List messages = new ArrayList(); private boolean closed = true; 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); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] addMessages(Message[] mArray) - throws MessagingException { - checkExists(); - messages.addAll(Arrays.asList(mArray)); - return mArray; + throws MessagingException { + checkExists(); + messages.addAll(Arrays.asList(mArray)); + return mArray; } - + + /** + * {@inheritDoc} + */ @Override public void appendMessages(Message[] msgs) throws MessagingException { - addMessages(msgs); + addMessages(msgs); } + /** + * {@inheritDoc} + */ @Override public synchronized void close(boolean expunge) throws MessagingException { - checkExists(); - if (expunge) { - expunge(); - } - closed = true; + checkExists(); + if (expunge) { + expunge(); + } + closed = true; } + /** + * {@inheritDoc} + */ @Override public Folder[] list() throws MessagingException { - List folders = ((MockIMAPStore) store).getChilds(this); - return folders.toArray(new Folder[folders.size()]); + List folders = ((MockIMAPStore) store).getChilds(this); + return folders.toArray(new Folder[folders.size()]); } + /** + * {@inheritDoc} + */ @Override public synchronized void copyMessages(Message[] messages, Folder folder) - throws MessagingException { - checkExists(); - ((MockIMAPFolder) folder).addMessages(messages); + throws MessagingException { + checkExists(); + ((MockIMAPFolder) folder).addMessages(messages); } - + public void loadDemoMessages(Session session) throws MessagingException { - if (!exists()) { - create(IMAPFolder.HOLDS_MESSAGES); - open(Folder.READ_WRITE); - } - for(int i=0;;i++) { - String name = DemoModeConstants.DEMO_MODE_MESSAGES_LOCATION + i + ".msg"; - InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(name); - if (is == null) break; - addMessages(new Message[]{new MimeMessage(session, is)}); - } + if (!exists()) { + create(IMAPFolder.HOLDS_MESSAGES); + open(Folder.READ_WRITE); + } + for (int i = 0;; i++) { + String name = DemoModeConstants.DEMO_MODE_MESSAGES_LOCATION + i + + ".msg"; + InputStream is = Thread.currentThread().getContextClassLoader() + .getResourceAsStream(name); + if (is == null) + break; + addMessages(new Message[] { new MimeMessage(session, is) }); + } } + /** + * {@inheritDoc} + */ @Override public synchronized boolean create(int type) throws MessagingException { - if (exists()) { - throw new MessagingException("Folder already exists!"); - } - exists = true; - return ((MockIMAPStore) store).save(this); + if (exists()) { + throw new MessagingException("Folder already exists!"); + } + exists = true; + return ((MockIMAPStore) store).save(this); } + /** + * {@inheritDoc} + */ @Override public synchronized boolean delete(boolean recursive) - throws MessagingException { - exists = false; - return ((MockIMAPStore) store).delete(this, recursive); + throws MessagingException { + exists = false; + return ((MockIMAPStore) store).delete(this, recursive); } + /** + * {@inheritDoc} + */ @Override public synchronized boolean exists() throws MessagingException { - return exists; + return exists; } + /** + * {@inheritDoc} + */ @Override public synchronized void fetch(Message[] msgs, FetchProfile fp) - throws MessagingException { - checkExists(); + throws MessagingException { + checkExists(); } + /** + * {@inheritDoc} + */ @Override public synchronized int getDeletedMessageCount() throws MessagingException { - return 0; + return 0; } + /** + * {@inheritDoc} + */ @Override public Folder getFolder(String name) throws MessagingException { - return super.getFolder(name); + return super.getFolder(name); } + /** + * {@inheritDoc} + */ @Override public synchronized String getFullName() { - return fullName; + return fullName; } + /** + * {@inheritDoc} + */ @Override public synchronized Message getMessage(int msgnum) - throws MessagingException { - checkExists(); - if (messages.size() <= msgnum) { - throw new MessagingException(); - } - return messages.get(msgnum); + throws MessagingException { + checkExists(); + if (messages.size() <= msgnum) { + throw new MessagingException(); + } + return messages.get(msgnum); } + /** + * {@inheritDoc} + */ @Override public synchronized Message getMessageByUID(long uid) - throws MessagingException { - checkExists(); - return getMessage(new Long(uid).intValue()); + throws MessagingException { + checkExists(); + return getMessage(new Long(uid).intValue()); } + /** + * {@inheritDoc} + */ @Override public synchronized int getMessageCount() throws MessagingException { - checkExists(); - return messages.size(); + checkExists(); + return messages.size(); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] getMessagesByUID(long uidstart, long uidend) - throws MessagingException { - checkExists(); - return getMessages(new Long(uidstart).intValue(), new Long(uidend) - .intValue()); + throws MessagingException { + checkExists(); + return getMessages(new Long(uidstart).intValue(), + new Long(uidend).intValue()); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] getMessagesByUID(long[] uids) - throws MessagingException { - checkExists(); - int ints[] = new int[uids.length]; - for (int i = 0; i < uids.length; i++) { - ints[i] = new Long(uids[i]).intValue(); - } - return getMessages(ints); + throws MessagingException { + checkExists(); + int ints[] = new int[uids.length]; + for (int i = 0; i < uids.length; i++) { + ints[i] = new Long(uids[i]).intValue(); + } + return getMessages(ints); } + /** + * {@inheritDoc} + */ @Override public synchronized String getName() { - return name; + return name; } + /** + * {@inheritDoc} + */ @Override public synchronized int getNewMessageCount() throws MessagingException { - checkExists(); - return 0; + checkExists(); + return 0; } + /** + * {@inheritDoc} + */ @Override public synchronized Folder getParent() throws MessagingException { - return ((MockIMAPStore) store).getParent(this); + return ((MockIMAPStore) store).getParent(this); } + /** + * {@inheritDoc} + */ @Override public void idle() throws MessagingException { - checkExists(); + checkExists(); } + /** + * {@inheritDoc} + */ @Override public synchronized boolean isOpen() { - return closed == false; + return closed == false; } + /** + * {@inheritDoc} + */ @Override public synchronized boolean isSubscribed() { - return true; + return true; } + /** + * {@inheritDoc} + */ @Override public synchronized void open(int arg0) throws MessagingException { - checkExists(); - closed = false; + checkExists(); + closed = false; } + /** + * {@inheritDoc} + */ @Override public synchronized boolean renameTo(Folder f) throws MessagingException { - checkExists(); - return false; + checkExists(); + return false; } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] search(SearchTerm arg0, Message[] arg1) - throws MessagingException { - checkExists(); - return arg1; + throws MessagingException { + checkExists(); + return arg1; } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] expunge() throws MessagingException { - checkExists(); - return expunge(messages.toArray(new Message[messages.size()])); + checkExists(); + return expunge(messages.toArray(new Message[messages.size()])); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] expunge(Message[] msgs) - throws MessagingException { - checkExists(); - List mList = new ArrayList(); - for (int i = 0; i < msgs.length; i++) { - Message m = msgs[i]; - if (m.getFlags().contains(Flag.DELETED)) { - if (messages.remove(m)) { - mList.add(m); - } - } - } - return mList.toArray(new Message[mList.size()]); + throws MessagingException { + checkExists(); + List mList = new ArrayList(); + for (int i = 0; i < msgs.length; i++) { + Message m = msgs[i]; + if (m.getFlags().contains(Flag.DELETED)) { + if (messages.remove(m)) { + mList.add(m); + } + } + } + return mList.toArray(new Message[mList.size()]); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] search(SearchTerm arg0) - throws MessagingException { - checkExists(); - return getMessages(); + throws MessagingException { + checkExists(); + return getMessages(); } + /** + * {@inheritDoc} + */ @Override public synchronized void setFlags(Message[] mArray, Flags flags, - boolean value) throws MessagingException { - checkExists(); - for (int i = 0; i < mArray.length; i++) { - Message m = mArray[i]; - for (int a = 0; a < messages.size(); a++) { - Message m2 = messages.get(a); - if (m2.equals(m)) { - m2.setFlags(flags, value); - break; - } - } - } + boolean value) throws MessagingException { + checkExists(); + for (int i = 0; i < mArray.length; i++) { + Message m = mArray[i]; + for (int a = 0; a < messages.size(); a++) { + Message m2 = messages.get(a); + if (m2.equals(m)) { + m2.setFlags(flags, value); + break; + } + } + } } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] getMessages() throws MessagingException { - checkExists(); - return messages.toArray(new Message[messages.size()]); + checkExists(); + return messages.toArray(new Message[messages.size()]); } + /** + * {@inheritDoc} + */ @Override public synchronized Message[] getMessages(int start, int end) - throws MessagingException { - checkExists(); - Message[] array = new Message[end- --start]; - for (int i=0; start messages.size() || mInt < messages.size()) { - throw new MessagingException(); - } - array[i] = messages.get(i); - } - return array; + for (int i = 0; i < ints.length; i++) { + int mInt = ints[i] - 1; + if (mInt > messages.size() || mInt < messages.size()) { + throw new MessagingException(); + } + array[i] = messages.get(i); + } + return array; } + /** + * {@inheritDoc} + */ @Override public Store getStore() { - return store; + return store; } + /** + * {@inheritDoc} + */ @Override public synchronized void setFlags(int arg0, int arg1, Flags arg2, - boolean arg3) throws MessagingException { - checkExists(); + boolean arg3) throws MessagingException { + checkExists(); } + /** + * {@inheritDoc} + */ @Override public synchronized void setFlags(int[] arg0, Flags arg1, boolean arg2) - throws MessagingException { - checkExists(); + throws MessagingException { + checkExists(); } + /** + * {@inheritDoc} + */ @Override public synchronized long getUID(Message message) throws MessagingException { - checkExists(); - return messages.indexOf(message); + checkExists(); + return messages.indexOf(message); } + /** + * {@inheritDoc} + */ @Override public synchronized int getUnreadMessageCount() throws MessagingException { - int ret = getMessageCount(); - for (Message msg: messages) { - if (msg.getFlags().contains(Flag.SEEN)) - ret --; - } - return ret; + int ret = getMessageCount(); + for (Message msg : messages) { + if (msg.getFlags().contains(Flag.SEEN)) + ret--; + } + return ret; } - private void checkExists() throws MessagingException { - if (exists() == false) { - throw new MessagingException("Folder not exists"); - } + /** + * {@inheritDoc} + */ + @Override + protected void checkExists() throws MessagingException { + if (exists() == false) { + throw new MessagingException("Folder not exists"); + } } } Index: server/src/main/webapp/WEB-INF/conf/config.properties =================================================================== --- server/src/main/webapp/WEB-INF/conf/config.properties (revision 1073718) +++ server/src/main/webapp/WEB-INF/conf/config.properties (working copy) @@ -1,5 +1,5 @@ # The IP or domainname of the IMAP server -IMAPServerAddress=imap.gmail.com +IMAPServerAddress=demo-mode # The port of the IMAP server IMAPServerPort=993 # Set the connections amount which will get maximal opened per user for processing requests @@ -22,7 +22,7 @@ SessionDebug=true # The IP or domainname of the SMTP server -SMTPServerAddress=smtp.gmail.com +SMTPServerAddress=demo-mode # The port of the SMTP server SMTPServerPort=465 # Use AUTH for SMTP @@ -30,7 +30,3 @@ # Use SSL/TLS to connect to the SMTP server SMTPS=true -## Remove these lines to use Gmail IMAP AND SMTP -IMAPServerAddress=demo-mode -SMTPServerAddress=demo-mode - Index: server/src/site/site.xml =================================================================== --- server/src/site/site.xml (revision 1073718) +++ server/src/site/site.xml (working copy) @@ -19,8 +19,6 @@ --> - - Index: server/pom.xml =================================================================== --- server/pom.xml (revision 1073718) +++ server/pom.xml (working copy) @@ -1,113 +1,113 @@ - - 4.0.0 + + 4.0.0 + + org.apache.hupa - hupa-server - hupa-server + hupa-parent 0.0.1-SNAPSHOT - Servercode implementation to access IMAP Mailbox - jar + + org.apache.hupa + hupa-server + 0.0.1-SNAPSHOT + jar - - org.apache.hupa - hupa-parent - 0.0.1-SNAPSHOT - - - - war/WEB-INF/classes - - - org.apache.maven.plugins - maven-war-plugin - - src/main/webapp/WEB-INF/web.xml - - - war - - **/hupa/* - - - - ${project.name} - - - - + hupa-server + Servercode implementation to access IMAP Mailbox - + + war/WEB-INF/classes + + + org.apache.maven.plugins + maven-war-plugin + + src/main/webapp/WEB-INF/web.xml + + + war + + **/hupa/* + + + + ${project.name} + + + + + + - org.apache.hupa - hupa-shared + org.apache.hupa + hupa-shared - commons-logging - commons-logging - - - logkit - logkit - - - avalon-framework - avalon-framework - - - javax.servlet - servlet-api - - + commons-logging + commons-logging + + + logkit + logkit + + + avalon-framework + avalon-framework + + + javax.servlet + servlet-api + + - log4j - log4j + log4j + log4j - javax.mail - mail + javax.mail + mail - net.customware.gwt.dispatch + net.customware.gwt.dispatch - gwt-dispatch + gwt-dispatch - gwtupload - gwtupload + gwtupload + gwtupload - commons-fileupload - commons-fileupload + commons-fileupload + commons-fileupload - commons-io - commons-io + commons-io + commons-io - com.google.code.guice - guice + com.google.code.guice + guice - com.google.code.guice - guice-servlet + com.google.code.guice + guice-servlet - com.google.gwt - gwt-user + com.google.gwt + gwt-user - com.google.gwt - gwt-servlet - runtime + com.google.gwt + gwt-servlet + runtime - junit - junit - test + junit + junit + test - + Property changes on: shared ___________________________________________________________________ Modified: svn:ignore - target .settings + target .settings .classpath .project Property changes on: shared/src/main/java ___________________________________________________________________ Added: svn:ignore + META-INF Index: shared/src/site/site.xml =================================================================== --- shared/src/site/site.xml (revision 1073718) +++ shared/src/site/site.xml (working copy) @@ -19,8 +19,6 @@ --> - - Index: shared/pom.xml =================================================================== --- shared/pom.xml (revision 1073718) +++ shared/pom.xml (working copy) @@ -1,47 +1,49 @@ - - 4.0.0 + + 4.0.0 + + org.apache.hupa - hupa-shared - hupa-shared + hupa-parent 0.0.1-SNAPSHOT - jar - Shared code for the client and server - - org.apache.hupa - hupa-parent - 0.0.1-SNAPSHOT - + - - - - org.codehaus.mojo - gwt-maven-plugin - - - - resources - - - - - - + org.apache.hupa + hupa-shared + 0.0.1-SNAPSHOT + jar - - - com.google.gwt - gwt-user - - - net.customware.gwt.dispatch - gwt-dispatch - - - junit - junit - test - - + hupa-shared + Shared code for the client and server + + + + + org.codehaus.mojo + gwt-maven-plugin + + + + resources + + + + + + + + + + com.google.gwt + gwt-user + + + net.customware.gwt.dispatch + gwt-dispatch + + + junit + junit + test + + \ No newline at end of file Property changes on: widgets ___________________________________________________________________ Modified: svn:ignore - target + target .classpath .project Property changes on: widgets/src/main/java ___________________________________________________________________ Added: svn:ignore + META-INF Index: widgets/pom.xml =================================================================== --- widgets/pom.xml (revision 1073718) +++ widgets/pom.xml (working copy) @@ -1,20 +1,21 @@ - - 4.0.0 + + 4.0.0 + + org.apache.hupa - hupa-widgets - hupa-widgets + hupa-parent 0.0.1-SNAPSHOT - jar - Collection of reusable widgets + - - org.apache.hupa - hupa-parent - 0.0.1-SNAPSHOT - + org.apache.hupa + hupa-widgets + 0.0.1-SNAPSHOT + jar - + hupa-widgets + Collection of reusable widgets + + src/main/java @@ -30,21 +31,20 @@ + - - - - - com.google.gwt - gwt-user - - - com.google.gwt - gwt-incubator - - - org.cobogw.gwt - cobogw - - + + + com.google.gwt + gwt-user + + + com.google.gwt + gwt-incubator + + + org.cobogw.gwt + cobogw + + Property changes on: widgets/.settings ___________________________________________________________________ Added: svn:ignore + org.eclipse.wst.common.component org.eclipse.wst.common.project.facet.core.xml org.maven.ide.eclipse.prefs Index: widgets/.settings/org.eclipse.jdt.core.prefs =================================================================== --- widgets/.settings/org.eclipse.jdt.core.prefs (revision 1073718) +++ widgets/.settings/org.eclipse.jdt.core.prefs (working copy) @@ -1,5 +1,9 @@ -#Sun Feb 14 17:36:42 CET 2010 +#Wed Feb 23 10:04:09 CET 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.source=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 Index: pom.xml =================================================================== --- pom.xml (revision 1073718) +++ pom.xml (working copy) @@ -1,360 +1,521 @@ - - + - 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. - --> - 4.0.0 - org.apache.hupa - hupa-parent - hupa-parent - 0.0.1-SNAPSHOT - - Hupa is a GWT based Webmail - - http://james.apache.org/hupa - 2009 - pom + 4.0.0 - - org.apache.james - james-project - 1.3 - + + org.apache.james + james-project + 1.5 + - - shared - client - server - widgets - + org.apache.hupa + hupa-parent + 0.0.1-SNAPSHOT + pom - - - hupa-website - scp://people.apache.org/www/james.apache.org/hupa/ - - + hupa-parent + Hupa is a GWT based Webmail + http://james.apache.org/hupa + 2009 - - JIRA - http://issues.apache.org/jira/browse/Hupa - + + 3.0.2 + - - scm:svn:http://svn.apache.org/repos/asf/james/hupa/trunk - scm:svn:https://svn.apache.org/repos/asf/james/hupa/trunk - http://svn.apache.org/viewvc/james/hupa/trunk/ - + + shared + client + server + widgets + - - Hudson - http://hudson.zones.apache.org/hudson/view/James/job/hupa-trunk/ - + + scm:svn:http://svn.apache.org/repos/asf/james/hupa/trunk + scm:svn:https://svn.apache.org/repos/asf/james/hupa/trunk + http://svn.apache.org/viewvc/james/hupa/trunk/ + - - - maven-repos - http://repo2.maven.org/maven2/ - - - maven2-repository.dev.java.net - Java.net Repository for Maven - http://download.java.net/maven/2/ - - - - gwtupload - GWT Upload repository at googlecode - http://gwtupload.googlecode.com/svn/mavenrepo - - - - gwt-dispatch - GWT Dispatch repository at googlecode - http://gwt-dispatch.googlecode.com/svn/maven2 - - - - gwt-presenter - GWT Presenter repository at googlecode - http://gwt-presenter.googlecode.com/svn/maven2 - - - - cobogw - Cobogw repository at googlecode - http://cobogw.googlecode.com/svn/maven2 - - - - guice - Guice repository at googlecode - http://guice-maven.googlecode.com/svn/trunk - - - - lib-repo - lib-m2-repository - http://svn.apache.org/repos/asf/james/hupa/lib - legacy - - false - - - ignore - - - - - 2.0.3 - + + JIRA + http://issues.apache.org/jira/browse/Hupa + - - - - - maven-deploy-plugin - 2.4 - - - maven-site-plugin - 2.0-beta-7 - - - maven-javadoc-plugin - 2.4 - - - maven-jxr-plugin - 2.1 - - - maven-pmd-plugin - 2.4 - - 1.4 - - /rulesets/basic.xml - /rulesets/controversial.xml - - xml - true - utf-8 - 100 - - - - org.codehaus.mojo - rat-maven-plugin - 1.0-alpha-3 - - - maven-jar-plugin - 2.2 - - - maven-compiler-plugin - 2.0.2 - - 1.5 - 1.5 - iso8859-1 - - - - maven-remote-resources-plugin - 1.0 - - - maven-surefire-plugin - 2.4.3 - - - maven-surefire-report-plugin - 2.4.3 - - - org.codehaus.mojo - emma-maven-plugin - true - - - -com.* - -gwt* - -gwt.* - -org.apache.hupa.widgets.* - -org.apache.hupa.client.widgets.* - - - - - - - - - - org.apache.hupa - hupa-server - ${project.version} - - - org.apache.hupa - hupa-shared - ${project.version} - - - org.apache.hupa - hupa-widgets - ${project.version} - + + Hudson + http://hudson.zones.apache.org/hudson/view/James/job/hupa-trunk/ + - - commons-logging - commons-logging - 1.1.1 - - - logkit - logkit - - - avalon-framework - avalon-framework - - - javax.servlet - servlet-api - - - - - log4j - log4j - 1.2.13 - - - javax.mail - mail - 1.4.1 - - - org.cobogw.gwt - cobogw - 1.3 - - - net.customware.gwt.dispatch - - gwt-dispatch - 1.0.0 - - - com.google.gwt.inject - gin - - - - - com.googlecode.gwt.inject - - gin - 1.0 - - - net.customware.gwt.presenter - - gwt-presenter - 1.1.0-replace-SNAPSHOT - - - com.google.gwt.inject - gin - - - - - com.google.gwt - gwt-incubator - 20100204-r1747 - - - com.google.code.gwt-dnd - gwt-dnd - 2.6.5 - - - eu.maydu.gwt - gwt-vl - 0.8b - - - gwtupload - gwtupload - 0.5.8-M5 - - - commons-fileupload - commons-fileupload - 1.2.1 - - - commons-io - commons-io - 1.4 - - - com.google.code.guice - guice - 2.0 - - - com.google.code.guice - guice-servlet - 2.0 - - - com.google.gwt - gwt-servlet - ${gwtVersion} - runtime - - - com.google.gwt - gwt-user - ${gwtVersion} - provided - - - com.google.gwt - gwt-dev - ${gwtVersion} - provided - - - junit - junit - 4.1 - test - - - org.easymock - easymock - 2.5.2 - test - - - + + + hupa-website + scp://people.apache.org/www/james.apache.org/hupa/ + + + + + 2.1.1 + + + + + + org.apache.hupa + hupa-server + ${project.version} + + + org.apache.hupa + hupa-shared + ${project.version} + + + org.apache.hupa + hupa-widgets + ${project.version} + + + + commons-logging + commons-logging + 1.1.1 + + + logkit + logkit + + + avalon-framework + avalon-framework + + + javax.servlet + servlet-api + + + + + log4j + log4j + 1.2.13 + + + javax.mail + mail + 1.4.4 + + + org.cobogw.gwt + cobogw + 1.3 + + + net.customware.gwt.dispatch + gwt-dispatch + 1.0.0 + + + com.google.gwt.inject + gin + + + + + com.googlecode.gwt.inject + gin + 1.0 + + + net.customware.gwt.presenter + gwt-presenter + 1.1.0-replace-SNAPSHOT + + + com.google.gwt.inject + gin + + + + + com.google.gwt + gwt-incubator + 20100204-r1747 + + + com.google.code.gwt-dnd + gwt-dnd + 2.6.5 + + + eu.maydu.gwt + gwt-vl + 0.8b + + + gwtupload + gwtupload + 0.5.8-M5 + + + commons-fileupload + commons-fileupload + 1.2.1 + + + commons-io + commons-io + 2.0.1 + + + com.google.code.guice + guice + 2.0.1 + + + com.google.code.guice + guice-servlet + 2.0.1 + + + com.google.gwt + gwt-servlet + ${gwtVersion} + runtime + + + com.google.gwt + gwt-user + ${gwtVersion} + provided + + + com.google.gwt + gwt-dev + ${gwtVersion} + provided + + + junit + junit + 4.8.2 + test + + + org.easymock + easymock + 3.0 + test + + + + + + + maven2-repository.dev.java.net + Java.net Repository for Maven + http://download.java.net/maven/2/ + + + gwtupload + GWT Upload repository at googlecode + http://gwtupload.googlecode.com/svn/mavenrepo + + + gwt-dispatch + GWT Dispatch repository at googlecode + http://gwt-dispatch.googlecode.com/svn/maven2 + + + gwt-presenter + GWT Presenter repository at googlecode + http://gwt-presenter.googlecode.com/svn/maven2 + + + cobogw + Cobogw repository at googlecode + http://cobogw.googlecode.com/svn/maven2 + + + guice + Guice repository at googlecode + http://guice-maven.googlecode.com/svn/trunk + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.5 + + + org.apache.maven.plugins + maven-site-plugin + 3.0-beta-3 + + + org.apache.maven.plugins + maven-jxr-plugin + 2.2 + + + org.apache.maven.plugins + maven-pmd-plugin + 2.5 + + 1.5 + + /rulesets/basic.xml + /rulesets/controversial.xml + + xml + true + utf-8 + 100 + + + + org.codehaus.mojo + rat-maven-plugin + 1.0-alpha-3 + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.5 + 1.5 + iso8859-1 + + + + org.apache.maven.plugins + maven-remote-resources-plugin + 1.1 + + + org.apache.maven.plugins + maven-surefire-plugin + 2.7.2 + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.7.2 + + + org.codehaus.mojo + emma-maven-plugin + true + + + -com.* + -gwt* + -gwt.* + -org.apache.hupa.widgets.* + -org.apache.hupa.client.widgets.* + + + + + 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 + + + + + + Property changes on: client ___________________________________________________________________ Modified: svn:ignore - target .gwt-tmp tomcat + target .gwt-tmp tomcat .settings .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/src/site/site.xml =================================================================== --- client/src/site/site.xml (revision 1073718) +++ client/src/site/site.xml (working copy) @@ -19,8 +19,6 @@ --> - - 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/pom.xml =================================================================== --- client/pom.xml (revision 1073718) +++ client/pom.xml (working copy) @@ -1,143 +1,138 @@ - - 4.0.0 + + 4.0.0 + + org.apache.hupa - hupa-client - hupa + hupa-parent 0.0.1-SNAPSHOT - war - A GWT based IMAP webmail - - org.apache.hupa - hupa-parent - 0.0.1-SNAPSHOT - - - war/WEB-INF/classes - - - - org.codehaus.mojo - gwt-maven-plugin - - Hupa.html - - -Dhupa.config.file=${project.parent.basedir}/server/src/main/webapp/WEB-INF/conf/config.properties - - - - - prepare-package - - compile - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - false - - ${basedir}/src/test/java - ${basedir}/src/main/java - - - - - org.apache.maven.plugins - maven-war-plugin - - src/main/webapp/WEB-INF/web.xml - - - - war - - **/hupa/* - - - - - - ../server/src/main/webapp/ - - - ${project.name} - - - - + - - - org.apache.hupa - hupa-server - - - org.apache.hupa - hupa-shared - - - org.apache.hupa - hupa-widgets - - - org.cobogw.gwt - cobogw - - - net.customware.gwt.dispatch - - gwt-dispatch - - - com.googlecode.gwt.inject - - gin - - - net.customware.gwt.presenter - - gwt-presenter - - - com.google.code.gwt-dnd - gwt-dnd - - - eu.maydu.gwt - gwt-vl - - - gwtupload - gwtupload - - - com.google.gwt - gwt-servlet - runtime - - - com.google.gwt - gwt-user - provided - - - com.google.gwt - gwt-dev - test - - - junit - junit - test - - - org.easymock - easymock - test - - + org.apache.hupa + hupa-client + 0.0.1-SNAPSHOT + war + + hupa-client + A GWT based IMAP webmail + + war/WEB-INF/classes + + + org.codehaus.mojo + gwt-maven-plugin + + Hupa.html + -Dhupa.config.file=${project.parent.basedir}/server/src/main/webapp/WEB-INF/conf/config.properties + + + + prepare-package + + compile + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + false + + ${basedir}/src/test/java + ${basedir}/src/main/java + + + + + org.apache.maven.plugins + maven-war-plugin + + src/main/webapp/WEB-INF/web.xml + + + war + + **/hupa/* + + + + + + ../server/src/main/webapp/ + + + ${project.name} + + + + + + + + org.apache.hupa + hupa-server + + + org.apache.hupa + hupa-shared + + + org.apache.hupa + hupa-widgets + + + org.cobogw.gwt + cobogw + + + net.customware.gwt.dispatch + gwt-dispatch + + + com.googlecode.gwt.inject + gin + + + net.customware.gwt.presenter + gwt-presenter + + + com.google.code.gwt-dnd + gwt-dnd + + + eu.maydu.gwt + gwt-vl + + + gwtupload + gwtupload + + + com.google.gwt + gwt-servlet + runtime + + + com.google.gwt + gwt-user + provided + + + com.google.gwt + gwt-dev + test + + + junit + junit + test + + + org.easymock + easymock + test + + 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 \ No newline at end of file Property changes on: client/README.txt ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native