Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Archived resource
Archived resource [message #431800] Mon, 27 July 2009 12:26 Go to next message
Eclipse UserFriend
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 16:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Archived resource [message #431814 is a reply to message #431811] Mon, 27 July 2009 16:41 Go to previous messageGo to next message
Eclipse UserFriend
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 15:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:polymorphism="explicit" not working for Criteriaor load Query
Next Topic:Controlling XML URI resolution
Goto Forum:
  


Current Time: Fri Apr 19 00:08:36 GMT 2024

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

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

Back to the top