[isidorus-cvs] r916 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: . isidorus

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Mon Sep 19 07:11:51 UTC 2011


Author: lgiessmann
Date: Mon Sep 19 00:11:51 2011
New Revision: 916

Log:
gdl-frontend: Widgets: fixed a bug in the reset method of the class GdlWebPage

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/GDL_Widgets.gwt.xml
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/GDL_Widgets.gwt.xml
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/GDL_Widgets.gwt.xml	Fri Sep 16 01:00:13 2011	(r915)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/GDL_Widgets.gwt.xml	Mon Sep 19 00:11:51 2011	(r916)
@@ -19,8 +19,8 @@
   
   <!-- Specify the app entry point class.                         -->
   <!-- <entry-point class='us.isidor.gdl.anaToMia.Widgets.base.TestClass'/> -->
-  <!-- <entry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.HashObjectUi"/> -->
-  <entry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.EnvironmentUi"/>
+  <entry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.HashObjectUi"/>
+  <!-- <ntry-point class="us.isidor.gdl.anaToMia.Widgets.isidorus.EnvironmentUi"/> -->
 
   <!-- Specify the paths for translatable code                    -->
   <source path="base"/>

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java	Fri Sep 16 01:00:13 2011	(r915)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java	Mon Sep 19 00:11:51 2011	(r916)
@@ -38,6 +38,9 @@
 	public final String GET_REQUEST_URL = IsidorusConstants.GET_FRAGMENT_REQUEST_URL;
 	
 	
+	public CommitCallback(){}
+	
+	
 	@Override
 	public void commitTmConstruct(ArrayList<Pair<Construct, TopicMapsTypes>> constructs, String buttonId, TmEngine tmEngine) {
 		try{
@@ -205,7 +208,6 @@
 		public void onResponseReceived(Request request, Response response) {
 			if (200 == response.getStatusCode()) {
 				Window.alert("commit operation of the object " + this.objectToBeSend + " succeeded");
-				// TODO: reset the web page
 			} else {
 				Window.alert("commit operation of the object " + this.objectToBeSend + " failed: " + response.getStatusCode() + "(" + response.getStatusText() + ")\n" + response.getText());
 			}
@@ -267,11 +269,9 @@
 						builder.sendRequest(delObj.toString(), new HashObjectDeleteRequest(delObj.toString(), this.objectToBeSend));						
 					}catch(RequestException e){
 						Window.alert("could not update the topic " + delObj);
-						//TODO: reset page
 					}
 				} else {
 					Window.alert("could not commit the topic with the psi " + psi + " since it already exists");
-					//TODO: reset page
 				}
 			} else if(404 == response.getStatusCode() && !edited) {
 				try{
@@ -281,11 +281,9 @@
 					commitBuilder.sendRequest(this.objectToBeSend, new HashObjectCommitRequest(this.objectToBeSend));
 				}catch(RequestException e){
 					Window.alert("could not commit the topic: " + this.objectToBeSend + ", because(" + e.getClass() + "): " + e.getMessage());
-					// TODO: reset page
 				}
 			} else {
 				Window.alert("could not commit the topic with the psi " + psi + ", because: " + response.getStatusCode() + ": " + response.getStatusText());
-				// TODO: reset page
 			}
 		}
 	
@@ -409,13 +407,10 @@
 		@Override
 		public void onError(Request request, Throwable exception) {
 			Window.alert("could not commit the data: " + this.objectToBeSend);
-			// TODO: reset page
 		}
 	}
 	
-	
-	
-	
+		
 	private class HashObjectDeleteRequest implements RequestCallback{
 		private String objectToBeDeleted = null;
 		private String objectToBeSend = null;
@@ -441,7 +436,6 @@
 					commitBuilder.sendRequest(this.objectToBeSend, new HashObjectCommitRequest(this.objectToBeSend));
 				}catch(RequestException e){
 					Window.alert("could not commit the data: " + this.objectToBeSend);
-					// TODO: reset web page
 				}
 			} else {
 				Window.alert("update operation of the object " + this.objectToBeDeleted + " failed: " + response.getStatusCode() + "(" + response.getStatusText() + ")\n" + response.getText());
@@ -452,7 +446,6 @@
 		@Override
 		public void onError(Request request, Throwable exception) {
 			Window.alert("could not update the data: " + this.objectToBeDeleted);
-			// TODO: reset web page
 		}
 	}
 	
@@ -474,7 +467,6 @@
 		public void onResponseReceived(Request request, Response response) {
 			if (200 == response.getStatusCode()) {
 				Window.alert("commit operation of the object " + this.objectToBeSend + " succeeded");
-				// TODO: reset the web page
 			} else {
 				Window.alert("commit operation of the object " + this.objectToBeSend + " failed: " + response.getStatusCode() + "(" + response.getStatusText() + ")\n" + response.getText());
 			}
@@ -484,7 +476,6 @@
 		@Override
 		public void onError(Request request, Throwable exception) {
 			Window.alert("could not commit the data: " + this.objectToBeSend);
-			// TODO: reset page
 		}
 	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java	Fri Sep 16 01:00:13 2011	(r915)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java	Mon Sep 19 00:11:51 2011	(r916)
@@ -59,9 +59,9 @@
 		}
 		
 		RootPanel.get("GWT_Content").add(this.mainPanel);
-		mainPanel.add(this.navigationPanel);
-		mainPanel.setPixelSize(1024, 700);
-		navigationPanel.add(createNewButton);
+		this.mainPanel.add(this.navigationPanel);
+		this.mainPanel.setPixelSize(1024, 700);
+		this.navigationPanel.add(this.createNewButton);
 		try{
 			this.requestHashObjectPsis();
 		} catch(ExecutionException e){
@@ -79,6 +79,7 @@
 		try{
 			this.psiContainer = new PsiContainer(new PsiClickHandler());
 			this.requestHashObjectPsis();
+			this.navigationPanel.add(this.createNewButton);
 		}catch(Exception e){
 			Window.alert("could not create web page, becuase: (" + e.getClass() + ") " + e.getMessage());
 		}




More information about the Isidorus-cvs mailing list