Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Loading GMF namespaces for workflows in GMF-GEF editor output
Loading GMF namespaces for workflows in GMF-GEF editor output [message #234942] Tue, 30 June 2009 23:22 Go to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I'm slowly setting up my mwe workflow for xpand running on my editor
output.

My gmf editor contains ref links to uml.ecore and ecore.ecore plus
several of my own.

In order to load the mwe Reader I had to set up RegisterEcoreFile to
point at my own ecore files in my local workspace, however since my
GEF-GMF editor contains both data and diagram the workflow runner is
looking for http://www.eclipse.org/gmf/runtime/1.0.2/notation from the
top of my model file.

SEVERE: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation' not found.


How can I satisfy this requirement. I have set up <firstElementOnly
value="false" /> but I still require the above apparently

Hopefully this is the last issue to solve before getting to the
generator which I think should be OK

Secondly any idea how to register an ecore defined in a plugin, ie I
use referenced uml.ecore types in some places in my DSL.

thanks
Steve

PS I did look at the GMF xpand way of code generation but it looked a
bit complex without documentation ;)
Re: Loading GMF namespaces for workflows in GMF-GEF editor output [message #234981 is a reply to message #234942] Wed, 01 July 2009 11:47 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

I cannot help you with mwe - there should be a didicated newsgroup for it,
but it looks like you have to expose location of http://www.eclipse.org/gmf/runtime/1.0.2/notation
metamodel for an expand.

> PS I did look at the GMF xpand way of code generation but it looked a
> bit complex without documentation ;)
I suggest you using ANT task to run xpand transformation (a part of GMF)
and use GMF xpand to generate code. :-)
Hope I'll be able to answer any questions concerning xpand execution in GMF.
As a starting point you can use org.eclipse.gmf.graphdef.editor/build.xml
file.

-----------------
Alex Shatalin
Re: Loading GMF namespaces for workflows in GMF-GEF editor output [message #234993 is a reply to message #234981] Wed, 01 July 2009 12:41 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Thanks Alex

I did create a workaround by copying notation.ecore to my local project
and referencing it, this solved the problem with the MWE Reader. It's
not a perfect soln as it could break if any underlying locally copied
ecores change. Hence I was just wondering if anyone else had come across
a similar situation in their use case. I'm just wondering if my use case
is covered by current implementations?

I did look at the GMF soln earlier but I found it slightly confusing due
to a lack of commenting in some of the GMF code, hopefully some examples
may be available in future? I agree that it's probably the long term
soln but at this time I'm just looking for a quick imp soln.

I've almost got the MWE workflow working but having issues with my
templates using xpand2 (I get the red error symbols on my templates even
when configured via code completion, when run they are giving
some strange error). The encoding is a bit of a pain also.
I will post to the appropriate group however.


thanks again
Steve

Alex Shatalin wrote:
> Hello Bill,
>
> I cannot help you with mwe - there should be a didicated newsgroup for
> it, but it looks like you have to expose location of
> http://www.eclipse.org/gmf/runtime/1.0.2/notation metamodel for an expand.
>
>> PS I did look at the GMF xpand way of code generation but it looked a
>> bit complex without documentation ;)
> I suggest you using ANT task to run xpand transformation (a part of GMF)
> and use GMF xpand to generate code. :-)
> Hope I'll be able to answer any questions concerning xpand execution in
> GMF.
> As a starting point you can use
> org.eclipse.gmf.graphdef.editor/build.xml file.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Issue with Decorator, Hanger, and Icons
Next Topic:Add child element to compartment on creation
Goto Forum:
  


Current Time: Tue Mar 31 23:51:27 GMT 2020

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

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

Back to the top