]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/eclipse/plugins/org.argeo.security.ui.application/src/main/java/org/argeo/security/ui/application/SecureRcp.java
Change password dialog
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui.application / src / main / java / org / argeo / security / ui / application / 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 }