Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » InteractiveSplashHandler and saving state
InteractiveSplashHandler and saving state [message #524077] Tue, 30 March 2010 15:10
Geejay is currently offline Geejay
Messages: 160
Registered: February 2010
Senior Member
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: Tue Sep 16 23:48:54 GMT 2014

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

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