Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Building an GMF-based editor for an UML-profile(Extending UML.ecore by inheritance let several methods unimplemented? Is there a better way? )
Building an GMF-based editor for an UML-profile [message #1006563] Thu, 31 January 2013 18:32 Go to next message
Ricardo CaWal is currently offline Ricardo CaWal
Messages: 20
Registered: January 2013
Junior Member
Hi! I'm trying to build an GMF-based editor for an UML profile defined in a previous work in my laboratory. The first approach I'm using to build the domain model is to extend by inheritance the elements the uml.ecore I'd found in mdt-uml2-Update-4.1.0M4.zip in an EMF project.

The genmodel is created without complains, but when I generated the model code several errors (about to 200) appears because of unimplemented methods of the UML elements (such as Association.getOwnedEnd(String,Type) and Dependency.getClient(String)).

I think that to implement each of this methods "by hand" will be a really time-consuming activity so I'm asking:
- Is there some place or resource that I can use that already have those methods implemented? (Since they are methods relative to the UML.ecore I think someone should have implemented and used they already.)
- Or, at least, is there a better way to implement this profile in a way I can use it as the *.ecore of the domain model of the GMF-based editor I'll build?

Thank you in advance. Wink
Re: Building an GMF-based editor for an UML-profile [message #1006581 is a reply to message #1006563] Thu, 31 January 2013 21:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
UML2's is generated with its own extended GenModel; anything that
extends it will also have to use UML2's extended GenModel. I'm not sure
how you'd do that if you're not expressing your extension in UML2
directly. Best to ask on the UML2 forum, where they're no doubt explain
that extending UML2 is a bad idea and that instead you should use
profiles to decorate/annotate it.


On 31/01/2013 8:29 PM, Ricardo \"CaWal\" Cacheta Waldemarin wrote:
> Hi! I'm trying to build an GMF-based editor for an UML profile defined
> in a previous work in my laboratory. The first approach I'm using to
> build the domain model is to extend by inheritance the elements the
> uml.ecore I'd found in mdt-uml2-Update-4.1.0M4.zip in an EMF project.
> The genmodel is created without complains, but when I generated the
> model code several errors (about to 200) appears because of
> unimplemented methods of the UML elements (such as
> Association.getOwnedEnd(String,Type) and Dependency.getClient(String)).
> I think that to implement each of this methods "by hand" will be a
> really time-consuming activity so I'm asking: - Is there some place or
> resource that I can use that already have those methods implemented?
> (Since they are methods relative to the UML.ecore I think someone
> should have implemented and used they already.) - Or, at least, is
> there a better way to implement this profile in a way I can use it as
> the *.ecore of the domain model of the GMF-based editor I'll build?
> Thank you in advance. ;)
Re: Building an GMF-based editor for an UML-profile [message #1006695 is a reply to message #1006581] Fri, 01 February 2013 13:23 Go to previous messageGo to next message
Ricardo CaWal is currently offline Ricardo CaWal
Messages: 20
Registered: January 2013
Junior Member
Thank you, Ed! I'll try the UML2 forum you suggested. Quick question: Do you know if the annotated metamodel will be represented in an Ecore file I can use in the GMF project?
Re: Building an GMF-based editor for an UML-profile [message #1006730 is a reply to message #1006695] Fri, 01 February 2013 16:04 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Ricardo,

In UML2, profiles are essentially just an Ecore model that you can use
to associate additional information with the UML2 instances themselves.
That profile data is stored as part of the serialized UML. Building a
UI for UML2 is a very hard problem. It's hard to imagine you'd not be
better of trying specialize what Papyrus is already doing...


On 01/02/2013 2:23 PM, Ricardo \"CaWal\" Cacheta Waldemarin wrote:
> Thank you, Ed! I'll try the UML2 forum you suggested. Quick question:
> Do you know if the annotated metamodel will be represented in an Ecore
> file I can use in the GMF project?
Previous Topic:birt with struts1
Next Topic:Cannot access internet.
Goto Forum:
  


Current Time: Sun Oct 26 03:03:56 GMT 2014

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

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