Native java code Tools example [message #989552] |
Thu, 06 December 2012 12:25  |
Eclipse User |
|
|
|
Dear all,
I want to instantiate an EData Type (org.eclipse.draw2d.geometry.Rectangle) that is defined in my ecore model. This cannot be done directly, so I believe I'm required to use an AbstractTool with corresponding extension point?
Therefore, I'm trying to invoke the example given here: http://www.eclipse.org/epsilon/doc/articles/call-java-from-epsilon
However, the SampleTool is not found for some reason.
I couldn't find the mentioned .launch script, so here is the stacktrace from my plugin:
Type 'org.eclipse.epsilon.examples.tools.SampleTool' not found (/DEV/myplugin.xml.to.cspm/epsilon/transform.etl@13:28)
at org.eclipse.epsilon.eol.types.EolNativeType.<init>(EolNativeType.java:37)
at org.eclipse.epsilon.eol.execute.TypeExecutor.execute(TypeExecutor.java:75)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:226)
at org.eclipse.epsilon.eol.execute.NewExecutor.execute(NewExecutor.java:26)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:226)
at org.eclipse.epsilon.eol.execute.AssignExecutor.execute(AssignExecutor.java:48)
...
The used ETL script (line 13 onwards):
var sampleTool = new Native("org.eclipse.epsilon.examples.tools.SampleTool");
sampleTool.name = "George";
sampleTool.sayHello().println();
My eclipse version is Indigo SR2 + Epsilon 1.0.0.
Best regards,
Robert
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04404 seconds