[eol] question about usage of native types [message #664913] |
Tue, 12 April 2011 09:29  |
Eclipse User |
|
|
|
hi
i experimented with using native types in an ewl file. while the example from the book works
var frame = new Native("javax.swing.JFrame");
when i try to instance something else like
var util = new Native("org.eclipse.emf.ecore.util.EcoreUtil");
it fails with a "type not found" error message.
is there a way to make it known to epsilon?
thanks in advance
marco
|
|
|
|
|
|
|
|
|
|
|
|
Re: [eol] question about usage of native types [message #669587 is a reply to message #669572] |
Tue, 10 May 2011 16:17   |
Eclipse User |
|
|
|
Antonio,
My standalone setup is actually a set of plugins I run in my own RCP. I tried placing the class in the plugin's class path and it is still not found. This is what I have done using the extension point:
In my plugin.xml I have added the epsilon dt tools extension points to call my class:
...
<!-- Native Types used in Epsilon -->
<extension point="org.eclipse.epsilon.common.dt.tool">
<tool
class="net.sourceforge.riskc.riskcopcode.generator.epsilon.RiskcSimMetrics"
defaultName="SimMetrics">
</tool>
</extension>
...
In my manifest file I added the dt plugin as a required bundel:
...
Require-Bundle: org.eclipse.core.runtime,
org.junit,
org.eclipse.epsilon.common.dt,
org.eclipse.epsilon.eol.engine,
org.eclipse.epsilon.egl.engine,
org.eclipse.epsilon.evl.engine,
org.eclipse.epsilon.emc.emf,
...
Maybe I am missing something else? From my experience using the interactive mode in my other post, can it be that the egl is also not designed to work with native types?
Regards,
Horacio
[Updated on: Tue, 10 May 2011 17:03] by Moderator
|
|
|
|
Re: [eol] question about usage of native types [message #670867 is a reply to message #669700] |
Sun, 15 May 2011 21:10  |
Eclipse User |
|
|
|
Antonio,
Thank you for your answer, it worked flawlessly!
Now I have to figure out what is the best place/moment to add this.. perhaps in the public IEolExecutableModule createModule() method. Create the new specific type module, add the type delegate and return the module.
Best regards,
Horacio
[Updated on: Sun, 15 May 2011 21:12] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.25737 seconds