mohitgargk/jCAE — comment on commit 7198641e0f9ac1f630c9541774eff421bdad026e
File:  line 0
By mohitgargk:

In response to your last 2 comments, I figured out an alternate way to find out how to refresh the view. Though I understand we still have the delayed event problem, lets not talk about at this point.

What I can do is:

1. I will put FileChangeListener's anonymous listener in RemeshAction.
2. When user performs RemeshAction, I will check if the out of the selected nodes, any node's AmibeDataObject is in current view. If any of the node's AmibeDataObject is on display, I will add listener to its FileObject.
3. Let the RemeshAction be performed and update the jcae3d file. For a moment let assume that the fileChangeEvent will be caught without delay.
4. On fileChangeEvent, method fileChanged() will be called. This method will extract the AmibeNViewable from the current view and update it.
5. At the end of RemeshAction, the listner will be unsubscribed.

Kindly put your comments if this alternate strategy makes sense.

I will save the AmibeDataObject obtained from node's lookup when ViewGroupAction is performed.