[isidorus-cvs] r848 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Wed Sep 7 12:04:11 UTC 2011


Author: lgiessmann
Date: Wed Sep  7 05:04:11 2011
New Revision: 848

Log:
gdl-frontend: Widgets: fixed the isidorus constants

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/IsidorusConstants.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/LoadSchemaCallback.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/IsidorusConstants.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/IsidorusConstants.java	Wed Sep  7 04:32:38 2011	(r847)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/IsidorusConstants.java	Wed Sep  7 05:04:11 2011	(r848)
@@ -1,12 +1,12 @@
 package us.isidor.gdl.anaToMia.Widgets.isidorus;
 
-import com.google.gwt.core.client.GWT;
+
 import com.google.gwt.user.client.Window;
 
 
 public class IsidorusConstants {
-	public final static String DELETE_REUQEST_URL = Window.Location.getHost() + "/gdl/delete";
-	public final static String COMMIT_REQUEST_URL = Window.Location.getHost() + "/gdl/commit";
-	public final static String GET_FRAGMENT_REQUEST_URL = Window.Location.getHost() + "/gdl/fragment/";
-	public final static String GET_SCHEMA_REQUEST_URL = GWT.getModuleBaseURL() + "TextGrid_ServiceRegistry_required_TMCL_and_GDL_Schema_with_test_data.jtm"; //"gdl/schema";
+	public final static String DELETE_REUQEST_URL = Window.Location.getProtocol() + "//" + Window.Location.getHost() + "/gdl/delete";
+	public final static String COMMIT_REQUEST_URL = Window.Location.getProtocol() + "//" + Window.Location.getHost() + "/gdl/commit";
+	public final static String GET_FRAGMENT_REQUEST_URL = Window.Location.getProtocol() + "//" + Window.Location.getHost() + "/gdl/fragment/";
+	public final static String GET_SCHEMA_REQUEST_URL = Window.Location.getProtocol() + "//" + Window.Location.getHost() + "/gdl/schema"; //GWT.getModuleBaseURL() + "TextGrid_ServiceRegistry_required_TMCL_and_GDL_Schema_with_test_data.jtm";
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/LoadSchemaCallback.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/LoadSchemaCallback.java	Wed Sep  7 04:32:38 2011	(r847)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/LoadSchemaCallback.java	Wed Sep  7 05:04:11 2011	(r848)
@@ -35,6 +35,7 @@
 	public void loadSchema(GdlPanel panel, Pair<String, TopicIdentifierTypes> requestedTopicToEdit , ArrayList<Pair<String, TopicIdentifierTypes>> requestedTopicsToCreate)throws RequestException {
 		this.requestedTopicsToCreate = requestedTopicsToCreate;
 		this.requestedTopicToEdit = requestedTopicToEdit;
+		Window.alert("request address >> " + isidorusUrl); //TODO: remove
 		requestBuilder.sendRequest(null, new RequestCallbackImpl(panel));
 	}
 
@@ -63,7 +64,7 @@
 				}catch(ExecutionException e){
 					Window.alert("Execution Error: " + e.getMessage());
 				}catch(Exception e){
-					Window.alert("panel: " + panel + ", tm: " + panel.getSchemaTm() + "\ncought error: " + e.getLocalizedMessage()); // TODO: implement smarter error handling
+					Window.alert("panel: " + panel + ", tm: " + panel.getSchemaTm() + "\ncaught error: " + e.getLocalizedMessage()); // TODO: implement smarter error handling
 					e.printStackTrace();
 				}
 			} else {




More information about the Isidorus-cvs mailing list