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