Two graphical views of the same metamodel element [message #172629] |
Fri, 15 February 2008 08:47  |
Eclipse User |
|
|
|
Originally posted by: ismar.slomic.gmail.com
Hi,
I am working on a service modelling GMF editor.
As you can see in this screenshot (http://www.slomic.no/upms-light.gif ) the
interfaces (which contains attributes and operations) is represented as
ellipses in this diagram. Now, I want to create a new view of the interface
details, where you can add operations and attributes (properties). Like if
you double click on the interface ellipse you get another graphical
representation of the very same interface, in new empty view. The interface
is now represented as class (rectangle), where you have attribute and
operation compartments. Is this very difficult to manage in GMF? Could you
maybe send me existing code on a feature like this, and tell in words how I
should proceed to solve this.
Thanks, in advance!
Regards Ismar
|
|
|
|
|
|
|
|
|
Re: Two graphical views of the same metamodel element [message #173119 is a reply to message #173096] |
Wed, 20 February 2008 06:53  |
Eclipse User |
|
|
|
Originally posted by: Stefan.Warwas.dfki.de
Hello Alex
I am aware of these unique properties. I was just wondering about this
"hacky" part. Thanks!
Regards,
Stefan
Alex Shatalin wrote:
> Hello Stefan,
>
> To be honest, I'm not an author of this guide, so I do not know why this
> "hacky" part was introduced - to my understanding there should be no
> "hacking" in DiagramPartitioning. ;-) In any case, answering your
> question if you are working with two or more diagrams based on the same
> meta-model (.ecore file) then you should take care on uniqueness of some
> .gmfgen model properties. All tese properties are mentioned as "unique"
> in this document: http://wiki.eclipse.org/GMF_GenModel_Hints. Just
> search for "unique" string there and read corresponding description.
> I can admit your diagrams are working properly even without these
> properties set correctly, but in future you can face some problems with
> this (on future diagram modification + regeneration). So i suggest to
> modify corresponding properties. Hope I answered your question.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04567 seconds