summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift
diff options
context:
space:
mode:
authorStephan Schwaer2015-09-24 15:47:48 +0200
committerStephan Schwaer2015-09-24 15:47:48 +0200
commitae58cf774ad42c39e0c2a06b86992b59db6e6dd0 (patch)
tree886c5dc0a15061e6ff0c1eb64ab5f94af29c8abe /dozentenmodul/src/main/java/org/openslx/dozmod/thrift
parent[client] Update label for linked image when changing it. (diff)
downloadtutor-module-ae58cf774ad42c39e0c2a06b86992b59db6e6dd0.tar.gz
tutor-module-ae58cf774ad42c39e0c2a06b86992b59db6e6dd0.tar.xz
tutor-module-ae58cf774ad42c39e0c2a06b86992b59db6e6dd0.zip
[client] Ask for ip of satellite at login, when no satellites found.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift')
-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);
}
}
});