Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » eRCP » Displaying username and password InputDialog
Displaying username and password InputDialog [message #564435] Thu, 27 May 2010 10:19 Go to next message
walnut23  is currently offline walnut23 Friend
Messages: 23
Registered: March 2010
Junior Member
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 13:18 Go to previous message
Mark Rogalski is currently offline Mark RogalskiFriend
Messages: 200
Registered: July 2009
Senior Member
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 !
Previous Topic:Displaying username and password InputDialog
Next Topic:Problem of fillRoundRectangle
Goto Forum:
  


Current Time: Thu Dec 26 11:31:03 GMT 2024

Powered by FUDForum. Page generated in 0.03296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top