[isidorus-cvs] r917 - 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:29:32 UTC 2011
Author: lgiessmann
Date: Mon Sep 19 00:29:32 2011
New Revision: 917
Log:
Modified:
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/isidorus/GdlWebPage.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java Mon Sep 19 00:11:51 2011 (r916)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java Mon Sep 19 00:29:32 2011 (r917)
@@ -63,7 +63,7 @@
this.mainPanel.setPixelSize(1024, 700);
this.navigationPanel.add(this.createNewButton);
try{
- this.requestHashObjectPsis();
+ this.requestPsis();
} catch(ExecutionException e){
Window.alert("could not create web page, because: (" + e.getClass() + ") " + e.getMessage());
this.resetPage();
@@ -78,7 +78,7 @@
try{
this.psiContainer = new PsiContainer(new PsiClickHandler());
- this.requestHashObjectPsis();
+ this.requestPsis();
this.navigationPanel.add(this.createNewButton);
}catch(Exception e){
Window.alert("could not create web page, becuase: (" + e.getClass() + ") " + e.getMessage());
@@ -86,12 +86,13 @@
}
- private void requestHashObjectPsis() throws ExecutionException {
+ private void requestPsis() throws ExecutionException {
String url = null;
if(IsidorusConstants.HASH_OBJECT_PSI.equals(GdlWebPage.this.topicTypePsi)) url = URL.encode(IsidorusConstants.GET_HASH_OBJECT_PSIS_URL);
else if(IsidorusConstants.ENVIRONMENT_PSI.equals(GdlWebPage.this.topicTypePsi)) url = URL.encode(IsidorusConstants.GET_ENVIRONMENT_PSIS_URL);
else throw new ExecutionException("the topic type PSI " + GdlWebPage.this.topicTypePsi + " is not supported!");
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
+
try{
builder.sendRequest(null, new PsiRequest());
}catch(RequestException e){
@@ -185,8 +186,7 @@
GdlWebPage.this.psiContainer.addPsi(psiString);
}
- GdlWebPage.this.psiContainer.insertIn(GdlWebPage.this.navigationPanel);
- } else {
+ GdlWebPage.this.psiContainer.insertIn(GdlWebPage.this.navigationPanel); } else {
Window.alert("could not request existing instances of " + GdlWebPage.this.topicTypePsi + ", because(" + response.getStatusCode() + "): " + response.getStatusText());
GdlWebPage.this.resetPage();
}
More information about the Isidorus-cvs
mailing list