Displaying username and password InputDialog [message #564435] |
Thu, 27 May 2010 06:19  |
Eclipse User |
|
|
|
I am using eclipse plugin to display a button and on clicking it , it should ask for username and password in the same Input Dialog.
public class UserActionHandler extends AbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
InoutDialog userNameDialog = new InputDialog(Display.getCurrent().getActiveShell(),"Username ", "userid", label.getText(), new LengthValidator());
The problem here is i am getting the usernmane dialog and then followed by the password dialog. Instead i want both username and password to be diaplayed at the same time.
Please help !
|
|
|
Re: Displaying username and password InputDialog [message #564560 is a reply to message #564435] |
Wed, 16 June 2010 09:18  |
Eclipse User |
|
|
|
eRCP does not have InputDialog. I think you are on the wrong newsgroup. Try
the SWT newsgroup.
"walnut23" <alspriya23@gmail.com> wrote in message
news:htlh09$j50$1@build.eclipse.org...
>I am using eclipse plugin to display a button and on clicking it , it
>should ask for username and password in the same Input Dialog.
>
> public class UserActionHandler extends AbstractHandler {
> public Object execute(ExecutionEvent event) throws ExecutionException {
> IWorkbenchWindow window =
> HandlerUtil.getActiveWorkbenchWindowChecked(event);
> InoutDialog userNameDialog = new
> InputDialog(Display.getCurrent().getActiveShell(),"Username ", "userid",
> label.getText(), new LengthValidator());
>
> The problem here is i am getting the usernmane dialog and then followed by
> the password dialog. Instead i want both username and password to be
> diaplayed at the same time.
> Please help !
|
|
|
Powered by
FUDForum. Page generated in 0.24835 seconds