From 639f2e2a9c5350b93867010b3da094a5026ae4cb Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 8 Jul 2015 17:40:04 +0200 Subject: [client] added thrift connection error callback --- dozentenmodul/src/main/java/App.java | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'dozentenmodul/src/main/java/App.java') 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(); -- cgit v1.2.3-55-g7522