Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Examples » Issue with Login Popup(Issue with Login Popup)
Issue with Login Popup [message #1066126] Mon, 01 July 2013 07:10
Jack Clouseau is currently offline Jack ClouseauFriend
Messages: 22
Registered: June 2010
Junior Member
Hello All,

Am trying to add a log-in dialog to my application. I have added this code in the

start method of the IApplication java file:

below is the code:

/* (non-Javadoc)
 * @see
	public Object start(IApplicationContext context) throws Exception {
		Display display = PlatformUI.createDisplay();
			try {

				int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
				if (returnCode == PlatformUI.RETURN_RESTART)
					return IApplication.EXIT_RESTART;
					return IApplication.EXIT_OK;

			} finally {

			return IApplication.EXIT_OK;

Now, the issue is: when the application starts the splash screen shows up first ( i have configured the splash screen in the productconfiguration file of the application). Then the login dialog appears.

Before entering the credentials in the login dialog, if the user closes the application by selecting the "close window" conext-menu from the windows task bar, the application closes (spash screen), but the login dialog doesn't close.

The login dialog is created as below in the

private boolean aunthenticateUser(Display display){

		boolean openApp = false;

		Shell shell = new Shell(display);
		final LoginDialog loginDia = new LoginDialog(shell);
		final int status =;
		if(status == Window.OK){

			openApp = true;

		shell = null;
		return openApp;

On debugging i noticed that, if the user closes the application before entering the credentials in the login dialog, the control doesn't come to the file itself. If this is the case, how can i close my Login dialog in this scenarion

Please let me know suggestion to resolve this issue
Previous Topic:Need examples for Eclipse 3.5's Editor, View, Formatter, more
Next Topic:tomcat issue
Goto Forum:

Current Time: Fri Dec 09 02:47:30 GMT 2022

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

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

Back to the top