Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Init before login dialog box
Init before login dialog box [message #1219474] Wed, 04 December 2013 04:58 Go to next message
Ranto ANDRIANJAFY is currently offline Ranto ANDRIANJAFYFriend
Messages: 7
Registered: July 2013
Junior Member
Hi all!
I have a scout app which required authentication, I want to know where to put my code if I want to initialize something before the login box appears.

Thanks
Re: Init before login dialog box [message #1219692 is a reply to message #1219474] Thu, 05 December 2013 12:39 Go to previous message
Adrian Sacchi is currently offline Adrian SacchiFriend
Messages: 10
Registered: January 2013
Junior Member
Hi Ranto

The login box appears when your client application performs the first server call. Usually the first server call is performed in ClientSession.execLoadSession() when pre-loading the code types.

So any code that you write in the beginning of ClientSession.execLoadSession() will run before the login box appears.

  @Override
  public void execLoadSession() throws ProcessingException {
    System.out.println("before login box");
    setServiceTunnel(new HttpServiceTunnel(this, getBundle().getBundleContext().getProperty("server.url")));

    //pre-load all known code types
    CODES.getAllCodeTypes(authfoo.shared.Activator.PLUGIN_ID);

    setDesktop(new Desktop());

    // turn client notification polling on
    // getServiceTunnel().setClientNotificationPollInterval(2000L);
  }


Regards,
Adrian
Previous Topic:Scout Version Matrix
Next Topic:Canceling a processing request (Busy handler custom implementation?)
Goto Forum:
  


Current Time: Fri Mar 29 08:58:48 GMT 2024

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

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

Back to the top