Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Creating a DSL / Extending UML2
Creating a DSL / Extending UML2 [message #627224] Mon, 24 November 2008 21:25
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior Member
Hello,

I have followed the "Creating Robust Scalable DSL's with UML:
EclipseCon2008: Tutorial" article from the UML2 wiki. I must say that I'm
quite impressed by the extension mechanism within the UML2 project.

I have a few questions though. In the tutorials, a new EMF model is
created after the UML metamodel or profile has been defined, using the
"New EMF Model" wizard. This step generates a .genmodel file, and an
ecore file.

If I update the UML model (let's say I add a new property), I need to
regenerate the ecore file. How can I do this in a "clean" way?
My current approach is to re-run the "New EMF Model" wizard each time, and
save the .genmodel file under a different name (so it won't overwrite the
existing genmodel settings).

I have seen that there is a command in the "UML Editor" menu that converts
the current model. The problem is that when using this command, the
ecore.ecore and uml.ecore files are generated as well (besides my.ecore
file), and my.ecore references these 2 newly generated ecore models
(instead of the ones defined in the "pathmap", ie
UML_PROFILES/Ecore.profile.uml).

What is your approach when doing this kind of operations?

Thank you in advance.
CS.
Previous Topic:Problems with creating simple UML2 class diagram
Next Topic:Usage of DerivedUnion or simple derived?
Goto Forum:
  


Current Time: Thu Apr 25 09:08:18 GMT 2024

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

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

Back to the top