Invoking UMLUtil as Native Object fails [message #1765690] |
Tue, 13 June 2017 12:27 |
|
Hi all,
I am trying to access the methods provided by UMLUtil during the executionn of a EGL file.
I now that java code can be invoked Native object as shown here
https://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.calljava
I copy pasted the code on this page within my EGL file and it works smoothly
var frame = new Native("javax.swing.JFrame");
frame.setBounds(100,100,200,200);
frame.title = "Opened from EOL";
frame.visible = true;
then I added the a new Native variable
var frame = new Native("javax.swing.JFrame");
var umlutil = new Native("org.eclipse.uml2.uml.util.UMLUtil");
frame.setBounds(100,100,200,200);
frame.title = "Opened from EOL";
frame.visible = true;
and EPSILON does not find the object.
My eclipse installation includes Papyrus and many other modeling tools so I suppose that the referenced object and library is included in my installation.
I need UMLUtil to invoke getBaseElement(). I know that I can do that by accessing base_<metaclass name> attribute of stereotype applications but I prefer to go through UMLUtil.
Thanks for any help.
Best,
Luca
Luca Berardinelli
[Updated on: Tue, 13 June 2017 12:38] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03505 seconds