|
Ok, I'll kick this forum of with a problem I'm encountering now.
I'm writing a subsystem for my plug-in.
I've got a property page (extends SystemBasePropertyPage) that allows
the user to update data ... when the fields are updated, and the user
clicks apply, my page performs an update on the host (via rmi to a
server & PCML calls to the host). This works fine.
When the update is complete ... I want to update RSE tree node
associated with my resource in my subsystem.
To do this, I try to refresh the resources parent resource ... I do this
by invoking the following code within the parent resources class :
----------
SystemRegistry registry = SystemPlugin.getTheSystemRegistry();
markStale(true);
registry.fireEvent(new SystemResourceChangeEvent(this,
ISystemResourceChangeEvents.EVENT_REFRESH_SELECTED, subsystem));
----------
The parent resource extends AbstractResource and implements
ISystemContainer.
The problem is ... sometimes this forced refresh works ... sometimes it
does nothing.
After the forced refresh does nothing, if I cancel out of the property
page and select refresh on the parent node in the RSE tree, the node
updates fine.
Any suggestions?
david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.