Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to realize the parameter of methods like in uml class diagram
How to realize the parameter of methods like in uml class diagram [message #727377] Wed, 21 September 2011 02:21 Go to next message
Cindy  is currently offline Cindy
Messages: 59
Registered: May 2011
Member
Hey does anybody know how to realize the parameters of methods like in uml class diagram..
Re: How to realize the parameter of methods like in uml class diagram [message #727472 is a reply to message #727377] Wed, 21 September 2011 07:58 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

do you only want to diplay these in a label? You should consider using a ExpressionLabelMapping or you could use a FeatureLabelMapping and set its view pattern. If you want the user to edit this labels by using a small syntax you should consider using XText with your label.

Ralph
Re: How to realize the parameter of methods like in uml class diagram [message #727805 is a reply to message #727472] Wed, 21 September 2011 21:55 Go to previous messageGo to next message
Cindy  is currently offline Cindy
Messages: 59
Registered: May 2011
Member
Thank you for your direction:-) i will look into this xText thing to see whether my problem could be solved^_^
Re: How to realize the parameter of methods like in uml class diagram [message #730019 is a reply to message #727472] Tue, 27 September 2011 09:56 Go to previous message
Cindy  is currently offline Cindy
Messages: 59
Registered: May 2011
Member
hi ralph. , i tried to see XText thing for my appliction .. i installed the xtext plugin and tried its example.. but i dont know ,the sematic model is not like what i see in the gmf editor anymore in which the model is stored in a xml-like file .. so am i right? it's kind of complexed for me to understand this.. could you share me some other example if you have?
Previous Topic:duplicate method/field after GenerateDiagramEditor
Next Topic:Running GEF/GMF examples
Goto Forum:
  


Current Time: Fri Aug 22 05:54:22 EDT 2014

Powered by FUDForum. Page generated in 0.01659 seconds