/*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import javax.security.auth.callback.PasswordCallback;
import javax.security.auth.callback.TextOutputCallback;
+import org.argeo.security.ui.SecurityUiPlugin;
import org.argeo.util.LocaleCallback;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
/** Default authentication dialog, to be used as {@link CallbackHandler}. */
public class DefaultLoginDialog extends AbstractLoginDialog {
-
public DefaultLoginDialog() {
- this(Display.getCurrent().getActiveShell());
+ this(SecurityUiPlugin.display.get().getActiveShell());
}
- protected DefaultLoginDialog(Shell parentShell) {
+ public DefaultLoginDialog(Shell parentShell) {
super(parentShell);
}