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 14:40 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 239
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 59 times)

[Updated on: Fri, 24 May 2013 08: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 08:46 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
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 13:54 Go to previous messageGo to next message
serhat gezgin is currently offline serhat gezgin
Messages: 239
Registered: January 2013
Location: Izmir
Senior Member
Hi,

thanks a lot i fixed my problem via above url.

Regards
Re: Property Selection Filter on Property Section [message #1061334 is a reply to message #1060406] Fri, 31 May 2013 09:15 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

you could think of overwriting EMF's Jet templates. This saves you some work for the case that you are forced to delete the generated edit code in future.

Ralph
Re: Property Selection Filter on Property Section [message #1061813 is a reply to message #1061334] Tue, 04 June 2013 08:22 Go to previous message
serhat gezgin is currently offline serhat gezgin
Messages: 239
Registered: January 2013
Location: Izmir
Senior Member
Hi,

I know better Xpand than jet but i'll try

Thanks
Previous Topic:Qualified names on referance labels
Next Topic:Acces of node element from outside
Goto Forum:
  


Current Time: Fri Sep 19 18:06:31 GMT 2014

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

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