Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Epsilon - EOL](Using EmfTool class)
[Epsilon - EOL] [message #1767838] Tue, 11 July 2017 13:41 Go to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi,

With the use of http://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.standalone I've been able to run some EOL queries programmatically without a problem. At this point, I'm trying to use EmfTool:

var emfTool = new Native("org.eclipse.epsilon.emc.emf.tools.EmfTool");
var ecoreUtil = emfTool.ecoreUtil;


But I get the following error message

Type 'org.eclipse.epsilon.emc.emf.tools.EmfTool' not found (...)


Any hint of what could be the problem?

Epsilon 1.4.0

Cheers,
Antonio
Re: [Epsilon - EOL] [message #1767841 is a reply to message #1767838] Tue, 11 July 2017 13:59 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi Antonio,

Could you double-check that the EmfTool class is in the classpath of your application?

Cheers,
Dimitris
Re: [Epsilon - EOL] [message #1767933 is a reply to message #1767841] Wed, 12 July 2017 08:42 Go to previous messageGo to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hi Dimitris,

The problem was that in the class EpsilonStandaloneExample I did not add:

module.getContext().getNativeTypeDelegates().
			add(new ExtensionPointToolNativeTypeDelegate());


I took the example from (http://www.eclipse.org/epsilon/doc/articles/call-java-from-epsilon/)
I suppose that is what you mean when you say that I must include in the classpath of my application right? Thank you very much!

Cheers,
Antonio
Re: [Epsilon - EOL] [message #1767935 is a reply to message #1767933] Wed, 12 July 2017 09:09 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi Antonio,

Ah - I see! I should have guessed that you're using the Epsilon API in an Eclipse plugin :)

Cheers,
Dimitris
Previous Topic:jdbc emc problem
Next Topic:[Epsilon - EOL]
Goto Forum:
  


Current Time: Thu Mar 28 16:16:43 GMT 2024

Powered by FUDForum. Page generated in 0.04399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top