Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Login Plugin
Login Plugin [message #448574] Thu, 27 April 2006 02:38 Go to next message
Eclipse UserFriend
Hello

I need to build a login plugin, witch pops up before the client shows any
data like lotus notes or ibm workplace. Does someone know how to build
such a login page?

Regards
Imogen
Re: Login Plugin [message #448578 is a reply to message #448574] Thu, 27 April 2006 05:49 Go to previous messageGo to next message
Eclipse UserFriend
In the Application classsomething like this:


public Object run(Object args) throws Exception {
Display display = PlatformUI.createDisplay();
Shell topLevelShell = new Shell(display, SWT.NONE);
LoginDialogOld dialog = new LoginDialogOld(topLevelShell);
dialog.open();
topLevelShell.close();

User user = PlannerPlugin.getDefault().getUser();
if (user == null)
// Shutdown
return IPlatformRunnable.EXIT_OK;
// Update
/*

UpdateAction updateAction = new UpdateAction();
updateAction.run(null);
if (updateAction.isRestart())
// Restart
return IPlatformRunnable.EXIT_RESTART;
*/
PlannerPlugin.getAllRoles();
configureSystem(user.roles);
try {
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IPlatformRunnable.EXIT_RESTART;
}
return IPlatformRunnable.EXIT_OK;
} finally {
display.dispose();
}
}
"Imogen" <imogen@mysunrise.ch> schrieb im Newsbeitrag
news:86fc4f5f4978df5ba2df4b7566960e27$1@www.eclipse.org...
> Hello
>
> I need to build a login plugin, witch pops up before the client shows any
> data like lotus notes or ibm workplace. Does someone know how to build
> such a login page?
>
> Regards
> Imogen
>
Re: Login Plugin [message #448594 is a reply to message #448574] Thu, 27 April 2006 08:58 Go to previous message
Eclipse UserFriend
Also check out how eclipse-jaas plugin (on sourceforge, I think)
provides authentication and then plugin loading.

They must have examples of getting credentials from users.

Later,
PW
Previous Topic:org.eclipse.ui.startup and threads
Next Topic:SWT_AWT problems on Linux
Goto Forum:
  


Current Time: Wed Jul 09 22:23:55 EDT 2025

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

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

Back to the top