Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] How to correctly build rules?

Hi Jens,

try to register the standard XMI resource factory using resourceSet. registerXMIResourceFactories("uml");

Cheers,
Christian

On 10/15/2012 03:40 PM, Jens Bürger wrote:
Am 09.10.2012 20:05, schrieb Christian Krause:
Could it be that the stereotypes are root nodes?

I'm not sure if we mean the same, but the structure of

If you execute your
transformation programmatically,

I am not at the moment, but as it is necessary for the future I'm trying it.

For the moment I'm not able to load the UML-model. I get an exception:

Cannot create a resource for 'seclinks.uml'; a registered resource factory is needed at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:394)

So I tried to do a "UMLResouceFactoryImpl" my way but apparently took the wrong way. I even get a exception when loading the henshin-file:

Exception in thread "main" java.lang.UnsupportedOperationException
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.doLoad(ResourceImpl.java:1549)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1511)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1290)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
    at org.eclipse.emf.henshin.model.resource.HenshinResourceSet.getResource(HenshinResourceSet.java:182)
    at TransformationTest.run(TransformationTest.java:31)
    at TransformationTest.main(TransformationTest.java:35)


Thanks in advance,
Jens



_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev


Back to the top