Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Archived resource
Archived resource [message #431800] Mon, 27 July 2009 08:26 Go to next message
Eclipse User
Originally posted by: luzi.anderegg.ergon.ch

I'm building a RCP application using EMF and EMF Transaction. My
resource set consists of two resources sharing the same zip container.
To access these two resources, I use an URI starting with "archive". If
the container changes outside of EMF (e.g. deleting the file in the
project explorer), WorkspaceSynchronizer does not realize, that the two
resources belong to the modified container.

What is the best solution for this problem? Do I have to write my own
converter such that getResource for the container URI resolves to the
container content? Or can I add the container file as a resource to the
resource set?

Thanks,
Luzi
Re: Archived resource [message #431811 is a reply to message #431800] Mon, 27 July 2009 12:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25744
Registered: July 2009
Senior Member
Luzi,

Probably it should be supported but was never considered during the
design. Perhaps you'd like to contribute a bugzilla patch to support it
directly in the base framework...


Luzi Anderegg wrote:
> I'm building a RCP application using EMF and EMF Transaction. My
> resource set consists of two resources sharing the same zip container.
> To access these two resources, I use an URI starting with "archive".
> If the container changes outside of EMF (e.g. deleting the file in the
> project explorer), WorkspaceSynchronizer does not realize, that the
> two resources belong to the modified container.
>
> What is the best solution for this problem? Do I have to write my own
> converter such that getResource for the container URI resolves to the
> container content? Or can I add the container file as a resource to
> the resource set?
>
> Thanks,
> Luzi
Re: Archived resource [message #431814 is a reply to message #431811] Mon, 27 July 2009 12:41 Go to previous messageGo to next message
Eclipse User
Originally posted by: luzi.anderegg.ergon.ch

Ed,
thanks,


> Probably it should be supported but was never considered during the
> design. Perhaps you'd like to contribute a bugzilla patch to support it
> directly in the base framework...
>
So, the "correct solution" would be to adapt WorkspaceSynchronizer to
also consider files in a zipped container? Or is it possible to write a
converter?

Regards,
Luzi
Re: Archived resource [message #431873 is a reply to message #431814] Tue, 28 July 2009 11:17 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25744
Registered: July 2009
Senior Member
Luzi,

Comments below.

Luzi Anderegg wrote:
> Ed,
> thanks,
>
>
>> Probably it should be supported but was never considered during the
>> design. Perhaps you'd like to contribute a bugzilla patch to support
>> it directly in the base framework...
>>
> So, the "correct solution" would be to adapt WorkspaceSynchronizer to
> also consider files in a zipped container?
Yes, I think so. I'm not so familiar with the transaction APIs.
> Or is it possible to write a converter?
I'm not sure what a converter is...
>
> Regards,
> Luzi
Previous Topic:polymorphism="explicit" not working for Criteriaor load Query
Next Topic:Controlling XML URI resolution
Goto Forum:
  


Current Time: Thu Apr 17 14:42:50 EDT 2014

Powered by FUDForum. Page generated in 0.01631 seconds