Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-tm-dev] Question about RSE startup


That's great. However it doesn't seem to work. Is there something else that needs to be done apart from the following?

		if (!RSEUIPlugin.isTheSystemRegistryActive()) {
			return false;
		sysReg = RSECorePlugin.getDefault().getSystemRegistry();
		if (sysReg == null) {
			return false;
while (!RSECorePlugin.getThePersistenceManager().isRestoreComplete ()) {
			System.out.println("waiting for restore...");
			try {
			} catch (InterruptedException e) {

The call to isRestoreComplete() always returns false. This is being run in a different thread to the UI thread.


On Jun 27, 2007, at 9:41 AM, Oberhuber, Martin wrote:

Hi Greg,

There was
requesting exactly this.

As I understand it, what you need to do is


Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member

-----Original Message-----
From: dsdp-tm-dev-bounces@xxxxxxxxxxx
[mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Greg Watson
Sent: Wednesday, June 27, 2007 5:20 PM
To: Target Management developer discussions
Subject: [dsdp-tm-dev] Question about RSE startup


I've been seeing strange behavior from RSE when I call from an
external plugin, particularly during early initialization of
Although the RSE UI and core plugins are loaded, they don't seem to
have been fully configured. So calling
RSECorePlugin.getTheSystemRegistry().getHosts(), for example,
sometimes returns nothing, sometimes one host, sometimes
multiple hosts.

I think the issue is caused by the use of InitRSEJob to perform RSE
initialization. I presume that this is to reduce the plugin loading
overhead on Eclipse, but the problem is that it may be some time
before this job is actually run, so it is possible to attempt
to call
RSE methods before it is fully initialized.

Do you have any way of checking that RSE is ready, rather than just
loaded? Alternatively, could isTheSystemRegistryActive() be changed
so that it reflects the initialized state of RSE?


dsdp-tm-dev mailing list

dsdp-tm-dev mailing list

Back to the top