Extend UML2 (EMF) and still use graphical editing [message #549125] |
Sat, 24 July 2010 18:24  |
Eclipse User |
|
|
|
Hi @all,
I have to extend UML in order to create a new language "MyLang" based on UML class diagrams. I have already found everything I need in order to create the metamodel of this language based on Ecore.
e.g. my ecore package contains this EClass:
MyClass -> Class
so, I now have an own class type MyClass based on UML2 classes.
Now I want to be able to create a model of "MyLang" graphically. My wish: using an existing graphical Ecore/UML modelling tool. Of course, I don't expect the editor to know my extension and how they can be edited graphically. However, "MyClass" is a "Class", so the editor could display it as regular class ignoring additional attributes he does not know about. I want to be able to add such stuff "by hand" / text editor.
Do you know a suitable editor / approach / technology for my plans?
(BTW: Profiles are NOT what I need)
Thank you very much!
|
|
|
|
|
|
|
|
Re: Extend UML2 (EMF) and still use graphical editing [message #549455 is a reply to message #549313] |
Mon, 26 July 2010 12:28  |
Eclipse User |
|
|
|
Hi Vultur
> @Edward Willink: So your point is, that I should try the Papyrus
> project, because an already available GMF-editor (which is based on UML2
> ecore spec.) is able to display my language which is derived from UML2
> ecore spec.?
Not exactly.
If your research is creating an alternate domain, the UML2Tools/Papyrus
may be a useful source of copy and poaste ideas, but you will probably
want to prune quite a lot.
If yoiur reasearch is creating an esxtended domain; perhaps a new UML
diagram, then the UML2Tools/Papyrus may be a very useful source of copy
and poaste ideas and possibly provide some enhanced generators.
My own experiences with direct GMF are that you can have a fair number
of encouraging good days, but also too many difficult bad days that need
considerable insight to make progress from. Anything that helps myst be
good.
Regards
Ed Willink
|
|
|
|
Re: Extend UML2 (EMF) and still use graphical editing [message #628560 is a reply to message #628559] |
Mon, 26 July 2010 01:28  |
Eclipse User |
|
|
|
Hi vultur
Profiles are the 'easy' approach to a user-defined meta-model allowing a
limited form of extensibility.
Meta-models are the more powerful alternative. You can enter meta-models
directly in UML, but since UML provides far more than is necessary for
many meta-models, you may find it easier to use one of the many
compatible approaches for defining an Ecore meta-model
- annotated Java
- XSD schema
- Sample Ecore Tree Editor
- Ecore Tools Diagram editor
- OCLinEcore text editor
If you really want a custom diagram, the UML2 Tools project has a wide
variety of GMF-based editors that can be used as examples. However the
UML2 Tools project is no longer active, and so you will probably find
that the newer Papyrus project offers more extensibility for its
GMF-based editors although fewer UML diagrams are currently supported.
Regards
Ed Willink
On 25/07/2010 22:55, vultur wrote:
> As I said, profiles are not an option.
|
|
|
Re: Extend UML2 (EMF) and still use graphical editing [message #628561 is a reply to message #549203] |
Mon, 26 July 2010 08:47  |
Eclipse User |
|
|
|
Yes, I know what profiles are and how they are used. But my research topic enforces me to create a new language based on ecore, UML2 and not a UML2 profile, sorry.
@Edward Willink: So your point is, that I should try the Papyrus project, because an already available GMF-editor (which is based on UML2 ecore spec.) is able to display my language which is derived from UML2 ecore spec.?
|
|
|
Re: Extend UML2 (EMF) and still use graphical editing [message #628562 is a reply to message #628559] |
Mon, 26 July 2010 09:18  |
Eclipse User |
|
|
|
You didn't say why. You'd have a much easier time decorating base
instances than you will extending the model (not too hard; the
documentation page for UML2 has information about heavy and light weight
extension) and then extending the tools as well (not an easy thing at
all, especially given so little active development and so little
newsgroup help).
vultur wrote:
> As I said, profiles are not an option.
|
|
|
Re: Extend UML2 (EMF) and still use graphical editing [message #628563 is a reply to message #628561] |
Mon, 26 July 2010 12:28  |
Eclipse User |
|
|
|
Hi Vultur
> @Edward Willink: So your point is, that I should try the Papyrus
> project, because an already available GMF-editor (which is based on UML2
> ecore spec.) is able to display my language which is derived from UML2
> ecore spec.?
Not exactly.
If your research is creating an alternate domain, the UML2Tools/Papyrus
may be a useful source of copy and poaste ideas, but you will probably
want to prune quite a lot.
If yoiur reasearch is creating an esxtended domain; perhaps a new UML
diagram, then the UML2Tools/Papyrus may be a very useful source of copy
and poaste ideas and possibly provide some enhanced generators.
My own experiences with direct GMF are that you can have a fair number
of encouraging good days, but also too many difficult bad days that need
considerable insight to make progress from. Anything that helps myst be
good.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.25833 seconds