Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Application startup problem in 3.2 with login dialog before workbench start on first launch only
Application startup problem in 3.2 with login dialog before workbench start on first launch only [message #482823] Fri, 28 August 2009 08:39 Go to next message
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
I have a problem with Eclipse 3.2 based RCP where we do login before
workbench start.
- We can always log in when we launch from Eclipse/RSA
- we can never login when we have a built client and launch first time
- we can always login with the built client on subsequent launches

So my guess is that subsequent launches take advantage of some cached
information in the /configuration or /workbench directory and some base
apps startup faster.

We do login in the Application.run(Object args) method.

public Object run(Object args) {
Display display = PlatofrmUI.createDisplay();

Platform.endSplash();

if(login(display)) {
try {
int returnCode =
PlatformUI.createAndRunWorkbench(
display,
new ApplicationWorkbenchAdvisor());
//...
} finally {
logout();
display.dispose();
}
}
return IPlatformRunnable.EXIT_OK;
}

Is there a programatic way to wait for initialization and activation of
other bundles to complete?

Maarten
Re: Application startup problem in 3.2 with login dialog before workbench start on first launch only [message #482983 is a reply to message #482823] Fri, 28 August 2009 20:43 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Maarten,

Can't you be pragmatic and wait a while in the login() after the initial
login fails. Does the config.ini already contain startlevels for 3.2?

Best regards,

Wim


> I have a problem with Eclipse 3.2 based RCP where we do login before
> workbench start.
> - We can always log in when we launch from Eclipse/RSA
> - we can never login when we have a built client and launch first time
> - we can always login with the built client on subsequent launches
>
> So my guess is that subsequent launches take advantage of some cached
> information in the /configuration or /workbench directory and some base
> apps startup faster.
>
> We do login in the Application.run(Object args) method.
>
> public Object run(Object args) {
> Display display = PlatofrmUI.createDisplay();
>
> Platform.endSplash();
>
> if(login(display)) {
> try {
> int returnCode =
> PlatformUI.createAndRunWorkbench(
> display,
> new ApplicationWorkbenchAdvisor());
> //...
> } finally {
> logout();
> display.dispose();
> }
> }
> return IPlatformRunnable.EXIT_OK;
> }
>
> Is there a programatic way to wait for initialization and activation of
> other bundles to complete?
>
> Maarten
Previous Topic:RCP update site problem
Next Topic:Strange problem: Application could not be found in the registry
Goto Forum:
  


Current Time: Sat Apr 27 00:16:48 GMT 2024

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

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

Back to the top