Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Unloading of resources in the TransactionalEditingDomain
Unloading of resources in the TransactionalEditingDomain [message #620306] Thu, 11 September 2008 12:59
Andreas Scharf is currently offline Andreas ScharfFriend
Messages: 20
Registered: September 2010
Junior Member

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

editingDomain =
TransactionalEditingDomain.Registry.INSTANCE.getEditingDomai n(

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.

Any hints?

Previous Topic:[EMF Compare] Infos about the planned "patch/changeset model" feature?
Next Topic:Unloading of resources in the TransactionalEditingDomain
Goto Forum:

Current Time: Sat Mar 28 19:27:22 GMT 2020

Powered by FUDForum. Page generated in 0.02324 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top