Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Add plugin dep to diagram generated code!
Add plugin dep to diagram generated code! [message #1281826] Tue, 01 April 2014 12:11 Go to next message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
I am generating edit,editor,diagram plugin code from emfatic file referred in an ant script.

Now I want to add figures ( My custom plugin project ) as req plugin to diagram project (Programatically).

Is there any way in emfactic/ant task todo the same ?

I could see something similar in eol 'var genPlugin = GmfGen!GenPlugin.all.first();
genPlugin.requiredPlugins.add("MyProject.figures");'

but calling eol from ant script is not working as expected for generation!

Thanks,
Shrikanth NC

[Updated on: Tue, 01 April 2014 12:17]

Report message to a moderator

Re: Add plugin dep to diagram generated code! [message #1281827 is a reply to message #1281826] Tue, 01 April 2014 12:14 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 Shrikanth,

> but calling eol from ant script is not working as expected for generation

Could you please elaborate a bit more on the behaviour you're observing?

Cheers,
Dimitris
Re: Add plugin dep to diagram generated code! [message #1281833 is a reply to message #1281827] Tue, 01 April 2014 12:23 Go to previous messageGo to next message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
RunAnt.xml:33: Undefined variable, type or model: 'GmfGen!GenPlugin' (C:...\model\IS.eol@1:23)

My EOL contains

var genPlugin = GmfGen!GenPlugin.all.first();
genPlugin.requiredPlugins.add("MyProject.figures");

How my eol knows where my emf file is residing ?

I guess this eol script must be coded with more info.

Thanks,
Shrikanth NC
Re: Add plugin dep to diagram generated code! [message #1281836 is a reply to message #1281833] Tue, 01 April 2014 12:28 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.

Your GmfGen polishing transformation should be specified in a file named "FixGMFGen.eol" in the same directory as your .emf/.ecore metamodel [1] so that Eugenia can pick it up and execute it after its built-in transformation.

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/articles/eugenia-polishing/

[Updated on: Tue, 01 April 2014 12:28]

Report message to a moderator

Re: Add plugin dep to diagram generated code! [message #1282304 is a reply to message #1281836] Wed, 02 April 2014 05:16 Go to previous messageGo to next message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
Ant Script : which I am invoking programatically :

...
<target name="main" >

<epsilon.eugenia src="${basedir}/MyProject/model/IS.emf" />
</target>
...

ECore2GMF.eol content : ( Present in the same directory as my IS.emf )

var genPlugin = GmfGen!GenPlugin.all.first();
genPlugin.requiredPlugins.add("MyProject.figures");

Console :


Buildfile: C:\Users\shrikanth_n_c\Desktop\epsilonrcp\workspace\MyProject\RunAnt.xml

main:
[epsilon.eugenia] org.eclipse.epsilon.eugenia.ClearGmfFileSetAction@1ef1ae7->true
[epsilon.eugenia] org.eclipse.epsilon.eugenia.Emfatic2EcoreDelegate@1029aa0->true
[epsilon.eugenia] org.eclipse.epsilon.eugenia.Ecore2GenModelDelegate@18244c8->true
[epsilon.eugenia] org.eclipse.epsilon.eugenia.FixGenModelDelegate@fb9cbf->true

BUILD FAILED
C:\Users\shrikanth_n_c\Desktop\epsilonrcp\workspace\MyProject\RunAnt.xml:32: Undefined variable, type or model: 'GmfGen!GenPlugin' (C:\Users\shrikanth_n_c\Desktop\epsilonrcp\workspace\MyProject\model\ECore2GMF.eol@1:23)

Total time: 1 second

My requirement is to add MyProject.figures as dep whenever its generated.

Kindly let me know, What I may be missing!

Thanks,
Shrikanth NC
Re: Add plugin dep to diagram generated code! [message #1282340 is a reply to message #1282304] Wed, 02 April 2014 06:35 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi,

> ECore2GMF.eol content : ( Present in the same directory as my IS.emf )

The name of your EOL file should be FixGMFGen.eol instead of ECore2GMF.eol.

Cheers,
Dimitris
Previous Topic:ECL matches operation for Sets
Next Topic:[EGL] Append output to existing file
Goto Forum:
  


Current Time: Fri Mar 29 05:04:03 GMT 2024

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

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

Back to the top