james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@apache.org
Subject svn commit: r882864 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
Date Sat, 21 Nov 2009 09:19:04 GMT
Author: manolo
Date: Sat Nov 21 09:19:02 2009
New Revision: 882864

URL: http://svn.apache.org/viewvc?rev=882864&view=rev
Log:
Removed ugly code used while developing, and committed by error

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

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java?rev=882864&r1=882863&r2=882864&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java Sat Nov 21 09:19:02
2009
@@ -1,72 +1,51 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you 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 org.apache.hupa.client;
-
-import net.customware.gwt.presenter.client.place.PlaceManager;
-
-import org.apache.hupa.client.gin.HupaGinjector;
-import org.apache.hupa.client.mvp.AppPresenter;
-import org.apache.hupa.widgets.editor.Editor;
-import org.apache.hupa.widgets.editor.Toolbar;
-
-import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.RichTextArea;
-import com.google.gwt.user.client.ui.RootPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
-
-public class Hupa implements EntryPoint{
-    private final HupaGinjector injector = GWT.create(HupaGinjector.class);
-    
-    public void onModuleLoad() {
-        if (null != Window.Location.getParameter("test"))
-            onModuleLoadMine();
-        else
-            onModuleLoadOrg();
-        
-    }
-    
-    public void onModuleLoadOrg() {
-        // remove the loading message from the browser
-        com.google.gwt.user.client.Element loading = DOM.getElementById("loading");
-
-        DOM.removeChild(RootPanel.getBodyElement(), loading);
-
-
-        AppPresenter aPres = injector.getAppPresenter();
-        aPres.bind();
-       
-        RootPanel.get().add(aPres.getDisplay().asWidget());
-
-        PlaceManager placeManager = injector.getPlaceManager();
-        placeManager.fireCurrentPlace();
-    }
-
-    public void onModuleLoadMine() {
-        
-        DOM.setInnerHTML(RootPanel.get("loading").getElement(), "");
-        
-        RootPanel.get().add(new Editor());
-        
-    }
-
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you 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 org.apache.hupa.client;
+
+import net.customware.gwt.presenter.client.place.PlaceManager;
+
+import org.apache.hupa.client.gin.HupaGinjector;
+import org.apache.hupa.client.mvp.AppPresenter;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.ui.RootPanel;
+
+public class Hupa implements EntryPoint{
+    private final HupaGinjector injector = GWT.create(HupaGinjector.class);
+    
+    public void onModuleLoad() {
+        // remove the loading message from the browser
+        com.google.gwt.user.client.Element loading = DOM.getElementById("loading");
+
+        DOM.removeChild(RootPanel.getBodyElement(), loading);
+
+
+        AppPresenter aPres = injector.getAppPresenter();
+        aPres.bind();
+       
+        RootPanel.get().add(aPres.getDisplay().asWidget());
+
+        PlaceManager placeManager = injector.getPlaceManager();
+        placeManager.fireCurrentPlace();
+    }
+
+}



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