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);
}