Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » EReference on the diagram
EReference on the diagram [message #165545] Sun, 16 December 2007 07:51 Go to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

I have an EReference in one of my EClasses in the domain model file. In
the generated diagram editor it works as a drop down list in the
Properties view where I can select what I want the EReference to point to.

So I'm not using the EReference as Containment or as a Connection end.

Is there a way within GMF to display the selected EReference from the drop
down list in Properties on a diagram element (as a label)?
Re: EReference on the diagram [message #165631 is a reply to message #165545] Mon, 17 December 2007 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

I found a related request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138179
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg02396.html

Is there any workaround for this yet?
Re: EReference on the diagram [message #165637 is a reply to message #165631] Mon, 17 December 2007 08:33 Go to previous messageGo to next message
Eclipse UserFriend
Hello W.F.,

> Is there any workaround for this yet?
Manually written parser.

-----------------
Alex Shatalin
Re: EReference on the diagram [message #165735 is a reply to message #165637] Tue, 18 December 2007 05:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

How about creating a normal String Feature Attribute and mapping it onto a
Feature Label and at the same time assigning the String value of the
EReference to the String EAttribute? That would be two fields in the
Properties view.

There are some Properites in GMF itself that have two fileds for one
property: one drop down list and one uneditable both showing the same
selection.

Can I have some tips how to create that in code?
Re: EReference on the diagram [message #165740 is a reply to message #165735] Tue, 18 December 2007 07:32 Go to previous message
Eclipse UserFriend
Hello W.F.,

Sure, if you can modify metamodel then the best way is to create transient
derived volatile attribute and implement corresponding method menually.

> of the EReference to the String EAttribute? That would be two fields
> in the Properties view.
AFAIK you can filter out this attribute from properties view - see EMF docs.

> There are some Properites in GMF itself that have two fileds for one
> property: one drop down list and one uneditable both showing the same
> selection.
probably this should be corrected. ;-)

-----------------
Alex Shatalin
Previous Topic:Compartment
Next Topic:SVG connection rendering
Goto Forum:
  


Current Time: Wed Jul 16 07:25:01 EDT 2025

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

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

Back to the top