summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-24 15:50:19 +0200
committerSimon Rettberg2015-09-24 15:50:19 +0200
commit3953229b4365e7e792199ac7c22fb9b289fc6f42 (patch)
treee72133ca405fc6bf8503d611d2f3e7a7f500f6bc /dozentenmodul/src/main/java
parent[server] Implemente setImageVersionExpiry (diff)
parent[client] Ask for ip of satellite at login, when no satellites found. (diff)
downloadtutor-module-3953229b4365e7e792199ac7c22fb9b289fc6f42.tar.gz
tutor-module-3953229b4365e7e792199ac7c22fb9b289fc6f42.tar.xz
tutor-module-3953229b4365e7e792199ac7c22fb9b289fc6f42.zip
Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1
Diffstat (limited to 'dozentenmodul/src/main/java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
index fba3ed2a..a1711990 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
@@ -106,6 +106,9 @@ public class ThriftActions {
if (data.satellites != null && data.satellites.size() == 1 && !forceCustomSatellite) {
sat = data.satellites.get(0);
} else {
+ if (data.satellites.isEmpty()) {
+ Gui.asyncMessageBox("Login erfolgreich, aber es wurde kein Satellit-Server gefunden.\n"
+ + " Bitte geben Sie die Adresse Ihres Satelliten an.", MessageType.ERROR, LOGGER, null);}
sat = SatelliteListWindow.open(window, data.satellites);
}
@@ -134,7 +137,7 @@ public class ThriftActions {
Gui.asyncMessageBox(
"Authentifizierung erfolgreich, die Verbindung zum Satelliten-Server ist jedoch nicht möglich.\n\n"
+ "Möglicherweise ist der Server nicht verfügbar, oder die Netzwerkverbindung gestört.",
- MessageType.ERROR, null, null);
+ MessageType.ERROR, null, null);
}
return false;
}
@@ -164,7 +167,7 @@ public class ThriftActions {
Gui.asyncMessageBox(
"Authentifizierung erfolgreich, der Satellit verweigert jedoch die Verbindung.\n\n"
+ "Grund: " + e.number.toString() + " (" + e.message + ")",
- MessageType.ERROR, null, null);
+ MessageType.ERROR, null, null);
}
return false;
} catch (TInvocationException e) {
@@ -366,7 +369,7 @@ public class ThriftActions {
uploadThread.setDaemon(true);
uploadThread.start();
do { // Even more ugly - block the GUI thread so we know whether the
- // upload started, and only then switch to the next page
+ // upload started, and only then switch to the next page
Util.sleep(5);
} while (uploadTask.getFailCount() == 0 && uploadTask.getTransferCount() == 0
&& !uploadTask.isCanceled());
@@ -545,7 +548,7 @@ public class ThriftActions {
Gui.asyncMessageBox(
"Zur heruntergeladenen VM konnte keine vmx-Datei angelegt werden."
+ "\nSie können versuchen, das Abbild manuell in den VMWare-Player zu importieren.",
- MessageType.WARNING, LOGGER, e);
+ MessageType.WARNING, LOGGER, e);
}
}
});