Two graphical views of the same metamodel element [message #172629] |
Fri, 15 February 2008 13: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 #173080 is a reply to message #172666] |
Wed, 20 February 2008 10:18 |
Eclipse User |
|
|
|
Originally posted by: Stefan.Warwas.dfki.de
Hello Alex
I have a question regarding the "Diagram Partitioning" guide you
mentioned: Is step 6 of usecase 2 obligated? I never duplicated the
genmodel and changed the "model name" attribute and it works fine. Why
do I have to do this? Isn't it sufficient to change the "package name
prefix" of the sub-diagram?
Regards,
Stefan
Alex Shatalin wrote:
> Hello Ismar,
>
> Some additional information you can find here:
> http://wiki.eclipse.org/Diagram_Partitioning
> In general you don't need to write any code - you have to generate two
> GMF diagrams for top-level and child elements and then bind them
> together to open second diagram by double-clicking on first one.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Re: Two graphical views of the same metamodel element [message #173119 is a reply to message #173096] |
Wed, 20 February 2008 11: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.03549 seconds