Hi Christian,
I am running it using "Run As->Java Application", as you suggest. Also, I have the Plug-in Development Environment (PDE) installed, but I am not sure what you
mean by “Plug-In Development Tools”. Is that a different plug-in?
I should probably mention that I am able to run other examples, such as Ecore2Genmodel. It is only the Ecore2UML example that’s causing problems.
Cheers,
Vlad
From: henshin-dev-bounces@xxxxxxxxxxx [mailto:henshin-dev-bounces@xxxxxxxxxxx]
On Behalf Of Christian Krause
Sent: Thursday, September 11, 2014 4:55 PM
To: Henshin developers mailing list
Subject: Re: [henshin-dev] Problem running Ecore2UML example
Hi Vlad,
if you run it using "Run As->Java Application" in Eclipse, it should automatically import also the plugin dependencies. Do you have the Plug-In Development Tools installed?
2014-09-11 16:10 GMT+02:00 Vlad Acretoaie <rvac@xxxxxx>:
Hi Christian,
I tried calling UMLPackage.eINSTANCE.getName(), and it initially failed. However, it worked when
I added the org.eclipse.uml2.types JAR to the build path. The call returns the string “uml”.
However now I get the following exception when calling the execute() method of the UnitApplication
class:
Exception in thread "main" java.lang.RuntimeException: Missing factory for 'Node :null'. Register
the corresponding package, e.g. using PackageName.eINSTANCE.getName().
Interestingly, I get the same exception when executing the transformation using the henshin examples
plugin, so this problem is not caused by it being a stand-alone Java application.
Any further thoughts on solving this?
Cheers,
Vlad
Hi Vlad,
can you try to call UMLPackage.eINSTANCE.getName() ?
2014-09-11 11:09 GMT+02:00 Vlad Acretoaie <rvac@xxxxxx>:
Hi,
I am trying to run the Ecore2UML example included in the org.eclipse.emf.henshin.examples plugin. I am running the example as a stand-alone Java application (i.e. not an Eclipse
plug-in) by executing the Ecore2UML.java class.
However, the application fails to initialize the UML package. Namely, the following call returns false:
resourceSet.initPackageImplementation("org.eclipse.uml2.uml.UMLPackage");
I should mention that the required JAR (in my case org.eclipse.uml2.uml_5.0.0.v20140602-0749.jar) is included in the classpath.
Does anyone know what might be the cause of this?
Cheers,
Vlad
|
Vlad Acretoaie
|
PhD student
|
DTU Compute
|
|
Technical University of Denmark
|
|
Department of Applied Mathematics and Computer Science
|
Matematiktorvet
|
Building 303B, Room 055
|
DK - 2800 Kgs. Lyngby
|
Denmark
|
Direct
+45 45253645
|
rvac@xxxxxx
|
www.compute.dtu.dk/~rvac
|
|
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-dev
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-dev
|