diff options
| author | Jonathan Bauer | 2015-07-08 17:40:04 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-07-08 17:40:04 +0200 |
| commit | 639f2e2a9c5350b93867010b3da094a5026ae4cb (patch) | |
| tree | 93b70bd0e9a1cd0b768e097b0ada9b06cf62afae /dozentenmodul/src/main/java/App.java | |
| parent | [client] added style as parameter to showMessage of GuiManager (diff) | |
| download | tutor-module-639f2e2a9c5350b93867010b3da094a5026ae4cb.tar.gz tutor-module-639f2e2a9c5350b93867010b3da094a5026ae4cb.tar.xz tutor-module-639f2e2a9c5350b93867010b3da094a5026ae4cb.zip | |
[client] added thrift connection error callback
Diffstat (limited to 'dozentenmodul/src/main/java/App.java')
| -rw-r--r-- | dozentenmodul/src/main/java/App.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dozentenmodul/src/main/java/App.java b/dozentenmodul/src/main/java/App.java index 4cfef531..688ba81f 100644 --- a/dozentenmodul/src/main/java/App.java +++ b/dozentenmodul/src/main/java/App.java @@ -13,8 +13,6 @@ import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.spi.LoggingEvent; -import org.openslx.thrifthelper.ThriftManager; - import config.Config; import config.ConfigProxy; @@ -111,26 +109,6 @@ public class App { } catch (IOException e) { LOGGER.error("IOException when trying to initialise the proxy, see trace: ", e); } - // Set master server to use (TODO: make configurable via command line) - ThriftManager.setMasterServerAddress( "bwlp-masterserver.ruf.uni-freiburg.de" ); - - // // Set up thrift error message displaying - // ThriftManager.setErrorCallback(new ErrorCallback() { - // - // @Override - // public void thriftError(Throwable t, String message) { - // EventQueue.invokeLater(new Runnable() { - // - // @Override - // public void run() { - // JOptionPane.showMessageDialog(null, "Die Kommunikation mit dem Server ist fehlgeschlagen.\n" - // + "Bitte stellen Sie sicher, dass Sie mit dem Internet verbunden sind.\n" - // + "Sofern das Problem weiterhin besteht, liegt möglicherweise eine serverseitige\n" - // + "Störung vor.", "Fehler", JOptionPane.ERROR_MESSAGE); - // } - // }); - // } - // }); // start the GUI GuiManager.initGui(); |
