]> git.argeo.org Git - lgpl/argeo-commons.git/blob - SecureRcp.java
b8576c4b9b55d3f2f5b297689c7ed24e063e5aa7
[lgpl/argeo-commons.git] / SecureRcp.java
1 package org.argeo.security.ui.application;
2
3 import org.eclipse.equinox.app.IApplication;
4 import org.eclipse.ui.PlatformUI;
5 import org.eclipse.ui.application.WorkbenchAdvisor;
6
7 public class SecureRcp extends AbstractSecureApplication {
8
9 @Override
10 protected WorkbenchAdvisor createWorkbenchAdvisor() {
11 return new SecureWorkbenchAdvisor();
12 }
13
14 protected Integer processReturnCode(Integer returnCode) {
15 if (returnCode == PlatformUI.RETURN_RESTART)
16 return IApplication.EXIT_RESTART;
17 else
18 return IApplication.EXIT_OK;
19 }
20
21 }