Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Property Selection Filter on Property Section
Property Selection Filter on Property Section [message #1059575] Mon, 20 May 2013 10:40 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 136
Registered: January 2013
Location: Izmir
Senior Member
Hi

I have this metamodel;
(i only showing releations)
abstract Field

LookUp extends Field
  contentType -> 1..1 ContentType (referance)
  showField  -> 1..1 Field (reference)

Content Type
     ownedField -> 0..* Field(containment)



here i just want when user select showfield feature from properties section of LookUp Field, GMF must show only its referenced ContentType element Field's. But when i generate GMF it shows all created Field. How can i constraint this ? anyone can help me ?

(Example attached as a picture)

on example LookUp defined and cnn2 ContentType set as its ContentType referance feature. But when i click showField from properties section i must have only 'no' Number Field. But it gives me all fields. But i need only no Number field. How can i do this anyone can help me ?

Regards
  • Attachment: LookUp.png
    (Size: 162.24KB, Downloaded 9 times)

[Updated on: Fri, 24 May 2013 04:45]

Report message to a moderator

Re: Property Selection Filter on Property Section [message #1060347 is a reply to message #1059575] Fri, 24 May 2013 04:46 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 555
Registered: November 2009
Senior Member
Hi,

this is done via the .edit code that is generated by emf. Take a look at this http://wiki.eclipse.org/EMF-FAQ#How_can_I_control_which_instances_are_available_as_choices_when_editing_a_property_in_the_properties_view.3F .

Ralph
Re: Property Selection Filter on Property Section [message #1060406 is a reply to message #1060347] Fri, 24 May 2013 09:54 Go to previous message
serhat gezgin is currently offline serhat gezgin
Messages: 136
Registered: January 2013
Location: Izmir
Senior Member
Hi,

thanks a lot i fixed my problem via above url.

Regards
Previous Topic:Qualified names on referance labels
Next Topic:GMF creating xtext file as model
Goto Forum:
  


Current Time: Tue May 28 13:28:12 EDT 2013

Powered by FUDForum. Page generated in 0.10272 seconds