× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Don Yantzi wrote:
The ISystemResourceChangeEvents.EVENT_REFRESH_SELECTED event only
refreshes the selected objects in the Remote Systems view (it ignores
the source passed into the event constructor). Given your clarification
posting, is there any chance that the object is being deselected after
the first refresh?

Could be. I wasn't noticing anything, but the property panel is still
active, so it might be harder to detect.

If you are just updating properties of a model object then you could try
using the ISystemResourceChangeEvent. /EVENT_PROPERTY_CHANGE/ event type
instead. That's the event type we use when you change a member type in
the member properties dialog.

Tried changing the event ... didn't work.

Here's the code I'm currently using ... this code is in a method named
forceRefresh() in the Resource object:

----------
SystemRegistry registry = SystemPlugin.getTheSystemRegistry();

if (this instanceof ISystemContainer) {
ISystemContainer container = (ISystemContainer) this;
container.markStale(true);
}

registry.fireEvent(new SystemResourceChangeEvent(this,
SystemResourceChangeEvent.EVENT_PROPERTY_CHANGE,
getParent()));
----------

The getParent() method is my own routine that gets the Resource's container.

I also tried invoking the fireEvent method with getSubSystem() instead
of getParent().

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.