Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Ensuring RSE has initialized/loaded
Ensuring RSE has initialized/loaded [message #629804] Wed, 29 September 2010 15:17 Go to next message
No real name is currently offline No real nameFriend
Messages: 5
Registered: July 2010
Junior Member
What is the recommended way to ensure that RSE has fully initialized loaded prior to using it? I have some code that checks if a profle exists and if not it creates it:

ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
ISystemProfile profile = registry.getSystemProfile("ZZ");

IHost host = null;
if (profile == null){
try{
profile = registry.createSystemProfile("ZZ", true);
}catch (Exception e){}
}
profile is always null, (even after it has been created the first time though)however if I set a breakpoint, wait a couple seconds, then evaluate the profile is found. I am guessing the issue is that RSE is not fully started yet?

Thanks.
Re: Ensuring RSE has initialized/loaded [message #629871 is a reply to message #629804] Wed, 29 September 2010 19:30 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
There are two APIs for this in RSECorePlugin. The wait for the RSE model to
be fully restored while the second waits for a specific phase to complete
(INIT_ALL, INIT_INITIALIZER or INIT_MODEL).
public static IStatus waitForInitCompletion()

public static IStatus waitForInitCompletion(int phase)



<mlists@bigrideau.com> wrote in message
news:i7vl51$iri$1@news.eclipse.org...
> What is the recommended way to ensure that RSE has fully initialized
> loaded prior to using it? I have some code that checks if a profle exists
> and if not it creates it:
>
> ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
> ISystemProfile profile = registry.getSystemProfile("ZZ");
>
> IHost host = null;
> if (profile == null){
> try{
> profile = registry.createSystemProfile("ZZ", true);
> }catch (Exception e){}
> }
> profile is always null, (even after it has been created the first time
> though)however if I set a breakpoint, wait a couple seconds, then evaluate
> the profile is found. I am guessing the issue is that RSE is not fully
> started yet?
>
> Thanks.
Previous Topic:SSH Terminal Colors
Next Topic:How can I disable SFTP?
Goto Forum:
  


Current Time: Fri Apr 26 12:55:47 GMT 2024

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

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

Back to the top