Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Re: EMF/GMF visual editor generation - Changing the containment of elements
Re: EMF/GMF visual editor generation - Changing the containment of elements [message #143250] Wed, 18 July 2007 09:41 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

NyenVanTok,

Your question sounds specific to GMF, so I've replied to include the GMF
newsgroup in the "to" list of the reply. This should bring the question
to the attention of the correct people and a subsequent reply should
appear on both newsgroups. Please direct future GMF-specific questions
directly to the GMF newsgroup.


nyenvantok wrote:
> Hey hi,
>
> I am currently working on some sort of repository system for EMF objects.
>
> I encounter a problem, where I have a set of EMF elements (C) which are logically contained in an EMF element A.
>
> However, this should only be a view, phsyically I want those elements C to be saved in an EMF object B. I would save references between the Cs and the A later too, in order to be able to reconstruct the complete view transparently.
>
> Both EMF elements, A and B, have such containment features and are be capable of holding the EMF objects C.
>
> I have used the EMF / GMF generator chain to create the visual editor based on my ecore model. The initial idea was to create the visual editor for the "view" containment and change its editingPolicies and other classes so that they point to the Object B and thus save the Elements there.
>
> Unfortunately it is not working, once I place elements on the pane, the are not drawn and not reflected in the xmi file. Somewhere I am missing an important detail.
>
> I have tried a lot of other variations and was not able to succeed. By now I am running out of ideas.
>
> So, if you have any, please help!
> - thanks.
>
> NyenVanTok
>
Re: EMF/GMF visual editor generation - Changing the containment ofelements [message #144032 is a reply to message #143250] Wed, 25 July 2007 07:34 Go to previous message
Eclipse UserFriend
Hello NyenVanTok,

I suggest you to generate code placing C into the A instances and then debug/correct
it. It should not be so hard to modify generated code specially if you don'
tneed to reconstruct diagram drom the model file. Entry point is generated
CCreateCommand class.

-----------------
Alex Shatalin
Previous Topic:problem with displaying inheritance node in a Compartment
Next Topic:Override "DEL" keybinding in diagram
Goto Forum:
  


Current Time: Wed Apr 30 07:40:44 EDT 2025

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

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

Back to the top