| Native java code Tools example [message #989552] |
Thu, 06 December 2012 12:25  |
Robert Wilterdink Messages: 5 Registered: December 2012 |
Junior Member |
|
|
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
|
|
|
|
| Re: Native java code Tools example [message #989679 is a reply to message #989610] |
Fri, 07 December 2012 04:50   |
Robert Wilterdink Messages: 5 Registered: December 2012 |
Junior Member |
|
|
Hi Dimitris,
Let me clearify this. I downloaded the example, imported the plugin project in Eclipse & ran a new Eclipse instance (from the first Eclipse instance). The plugin is 'found', since I checked this in the installation details (Help -> About Eclipse).
However, the SampleTool is not found in the script.
Best regards,
Robert
[Updated on: Fri, 07 December 2012 04:50] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02776 seconds