]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rcp/src/main/java/org/argeo/slc/client/rcp/SlcSecureClientApplication.java
Improve logging
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rcp / src / main / java / org / argeo / slc / client / rcp / SlcSecureClientApplication.java
1 package org.argeo.slc.client.rcp;
2
3 import org.argeo.security.ui.rcp.SecureRcp;
4 import org.eclipse.jface.window.Window;
5 import org.eclipse.jface.window.Window.IExceptionHandler;
6 import org.eclipse.ui.application.WorkbenchAdvisor;
7
8 /**
9 * This class controls all aspects of the application's execution
10 */
11 public class SlcSecureClientApplication extends SecureRcp {
12
13 @Override
14 protected WorkbenchAdvisor createWorkbenchAdvisor(String username) {
15 Window.setExceptionHandler(new IExceptionHandler() {
16
17 public void handleException(Throwable t) {
18 System.err.println("Unexpected SLC UI exception: " + t);
19
20 }
21 });
22
23 return new SlcSecureWorkbenchAdvisor(username);
24 }
25
26 }