[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Can I use relative uri in 'href' attribute, when refers another resource?

Hi all.

Briefly speaking,

<umlClass href="/SampleWebApp/model/customer/classicLayout.ucm#/"/>
it works well. but,

<umlClass href="classicLayout.ucm#/"/>
this doesn't work.

Both resource files are same directory.

My code is like...

    ResourceSet resSet = eResource().getResourceSet();
    URI uri = URI.createFileURI(absoluteFilePath);
    Resource res = resSet.createResource(uri);
    res.getContents().add(externalObject);
    res.save(options);

and it makes absolute-uri href.

I've changed absoluteFiltPath to relativeFilePath, but it creates
exceptions.

How can I use relative path in 'href' attribute?

Thankyou for reading.