Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » InteractiveSplashHandler and saving state
InteractiveSplashHandler and saving state [message #524077] Tue, 30 March 2010 11:10
Eclipse UserFriend
I'm using the InteractiveSplashHandler approach to handling the login on my RCP.

When I go to authenticate I try and get a service (which I call a Session) through this code:

IWorkbench workbench = PlatformUI.getWorkbench();
ISourceProviderService sps = (ISourceProviderService) workbench.getService(ISourceProviderService.class);
Session session = (Session)sps.getSourceProvider(Constants.VariableIDSession);

But the sps is always null. I'm guessing something is not yet loaded.

Any tips on how best to achieve this? What is the best way to store user state in an RCP app?



(not sure what the actual auth will look like at the moment, could be a crypto key on the computer somewhere, or it could also be a database)
Previous Topic:Is it possible to remove the minimise button from a View's tab?
Next Topic:Override Command Binding
Goto Forum:
  


Current Time: Thu Jun 19 03:10:49 EDT 2025

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

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

Back to the top