]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/eclipse/plugins/org.argeo.security.ui/src/main/java/org/argeo/security/ui/commands/OpenChangePasswordDialog.java
Improve Security
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui / src / main / java / org / argeo / security / ui / commands / OpenChangePasswordDialog.java
1 package org.argeo.security.ui.commands;
2
3 import org.argeo.security.ArgeoSecurityService;
4 import org.argeo.security.ui.dialogs.ChangePasswordDialog;
5 import org.eclipse.core.commands.AbstractHandler;
6 import org.eclipse.core.commands.ExecutionEvent;
7 import org.eclipse.core.commands.ExecutionException;
8 import org.eclipse.ui.handlers.HandlerUtil;
9
10 /** Opens the change password dialog. */
11 public class OpenChangePasswordDialog extends AbstractHandler {
12 private ArgeoSecurityService securityService;
13
14 public Object execute(ExecutionEvent event) throws ExecutionException {
15 ChangePasswordDialog dialog = new ChangePasswordDialog(
16 HandlerUtil.getActiveShell(event), securityService);
17 dialog.open();
18 return null;
19 }
20
21 public void setSecurityService(ArgeoSecurityService securityService) {
22 this.securityService = securityService;
23 }
24
25 }