|Unloading of resources in the TransactionalEditingDomain [message #620306]
||Thu, 11 September 2008 12:59
| Andreas Scharf
Registered: September 2010
first I've to say that I'm new to EMF Transaction. In wrote an UI Plugin
which contributes an editor and a view. The view doesn't depend on the
editor so it can be displayed standalone and provides an overview of all
resources located in the workspace. My ContentProviders for the view are
connecting to the global editing domain via
which works very well.
Then the user can open a resource in an editor which could be loaded
previously if the view was opened first (so it already remains in the
global resourceset). The user can edit the resource and close the editor.
What I'm now thinking about is that this approach (i.e. loading all
available resources into the global resourceSet after opening the view)
could cost a lot of memory. So the question is when do I remove
resources from the global resourceSet to get them garbage collected? I
would need something that knows if nobody needs (i.e. references?) the
resource anymoe it can be unloaded and removed.
Powered by FUDForum
. Page generated in 0.02324 seconds