Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Init before login dialog box
Init before login dialog box [message #1219474] Tue, 03 December 2013 23:58 Go to next message
Ranto ANDRIANJAFY is currently offline Ranto ANDRIANJAFY
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 07:39 Go to previous message
Adrian Sacchi is currently offline Adrian Sacchi
Messages: 4
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: Wed Jul 23 01:52:51 EDT 2014

Powered by FUDForum. Page generated in 0.10679 seconds