GridTreeViewer refresh question [message #789514] |
Fri, 03 February 2012 04:05 |
|
Hi,
I'm using the GridTreeViewer and have a refresh problem. I call refresh() when my model has changed (typically it's either filled and I'm ready to display it, or it's been emptied and I need to display that fact to the user).
What seems to be happening is that the Grid is holding onto the original model elements somehow. Why is the refresh() function not clearing this structural change? I read the javadocs and thought that the refresh() would be the right one to use vs. the update methods since I had structural changes it needed to take into account. Then again, there are multiple refresh functions - is it possible that I'm using the "wrong one"?
Maybe this is more of a JFace viewer question - I'm not sure....but thought I would start asking here.
Thanks for the help!
-Sharon
|
|
|
Re: GridTreeViewer refresh question [message #790147 is a reply to message #789514] |
Fri, 03 February 2012 22:05 |
|
Ok, I was able to resolve this myself. Apparently I had some code to add adapters for the individual records that was leftover from when I started learning EMF, and I never cleaned it up to remove that line that added an adapter....so we were creating references to the individual records, and it looked like it was being held by the GridTreeViewer in the heap dumps we were looking at.
Just wanted to post the update - so nobody thought there was a real problem with the Grid!
-Sharon
|
|
|
Powered by
FUDForum. Page generated in 0.04058 seconds