×
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.
Basically, I cause the item I want to refresh to be selected, then fire
an the refresh selected event.
While this technique works ... it does result in the parent node being
selected after the refresh is complete.
I tried using the SystemResourceChangeEvent.EVENT_CHANGE_CHILDREN
instead of EVENT_REFRESH_SELECTED, but that causes the parent node to
collapse.
Digging around further I think I might have just found a solution.
If I fire the SystemResourceChangeEvent.EVENT_REFRESH_REMOTE event type,
the parent & child are updated... but only in that specific
super-parent-node (the parents parent).
Based on the fact that the getAbsoluteName method returns the same text
for identical objects in the tree, I would all nodes that represent the
same remote object to update. I added some debug code to the
getAbsoluteName method so that it tells me when the method is invoked, I
know that the expanded subnodes are being queried ... so I would expect
the various items to be updated.
Another thing that might be related is the fact that the
refreshRemoteObject method is never being invoked when the the
EVENT_REFRESH_REMOTE event is fired.
david
As an Amazon Associate we earn from qualifying purchases.