Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » zip archive support (Edapt)
zip archive support (Edapt) [message #719959] Mon, 29 August 2011 15:04 Go to next message
jschoedt Mising name is currently offline jschoedt Mising nameFriend
Messages: 11
Registered: March 2010
Junior Member
Hello,

I have difficulties using Edapt and it seems to be because I have my model instance split in several files and then zip'ed into one zip. This works fine when I load my model normally using:

uri = archive:file:/C:/foo/bar.arc!/workspace.xml

resourceSet.getResource(uri, true);

But when I try to eg. get the namespace URI using Edapt:

String nsURI = ReleaseUtils.getNamespaceURI(uri)

I get a NPE. My question is does Edapt support zip archives?

Thanks in advance, Jens



Re: zip archive support (Edapt) [message #721084 is a reply to message #719959] Wed, 31 August 2011 20:24 Go to previous messageGo to next message
Markus Herrmannsdoerfer is currently offline Markus HerrmannsdoerferFriend
Messages: 50
Registered: July 2009
Member
Hi Jens,

thanks for you interest in Edapt. I never had this requirement before.
It could be that the implementation is not generic enough to cope with
zip files. Where exactly do you get the NPE? Can you send me the stack
trace? Then I will take a look at it. What would also be nice is, if you
could build a minimal test case that shows the problem.
Cheers,

Markus

Am 29.08.2011 17:04, schrieb jschoedt:
> Hello,
>
> I have difficulties using Edapt and it seems to be because I have my
> model instance split in several files and then zip'ed into one zip. This
> works fine when I load my model normally using:
> uri = archive:file:/C:/foo/bar.arc!/workspace.xml
>
> resourceSet.getResource(uri, true);
>
> But when I try to eg. get the namespace URI using Edapt:
>
> String nsURI = ReleaseUtils.getNamespaceURI(uri)
>
> I get a NPE. My question is does Edapt support zip archives?
>
> Thanks in advance, Jens
>
>
>
>
Re: zip archive support (Edapt) [message #735034 is a reply to message #721084] Mon, 10 October 2011 17:31 Go to previous message
jschoedt Mising name is currently offline jschoedt Mising nameFriend
Messages: 11
Registered: March 2010
Junior Member
Ok, thanks for the reply Markus.

I ended up unpacking the zip since it was containing some image resources I had to unpack anyway.

No NPE when loading now, but I have an other issue. Ill make a new post.
Previous Topic:[EEF] EObjectFlatComboViewer displays all Resources instead of specific EMF resource
Next Topic:EDAPT
Goto Forum:
  


Current Time: Sun Oct 25 06:20:24 GMT 2020

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

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

Back to the top