Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to set properties for every node?
how to set properties for every node? [message #698715] Wed, 20 July 2011 00:47 Go to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
Hi everyone,
I have created a some sort of class diagram where i have 4 nodes. for each node i want to set some properties like: type, time,period,quantity etc etc. Is there any way to do this?
i put a picture about the nodes.
index.php/fa/3401/0/
  • Attachment: 1.jpg
    (Size: 21.61KB, Downloaded 179 times)
Re: how to set properties for every node? [message #698742 is a reply to message #698715] Wed, 20 July 2011 03:00 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

you can do this in the properties view when modelling. What is you excat need? Do you want to setup the node on creation?

Ralph
Re: how to set properties for every node? [message #698750 is a reply to message #698715] Wed, 20 July 2011 03:24 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 558
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

to initialize some properties you can use "Feature Seq Initializer".


Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Re: how to set properties for every node? [message #698779 is a reply to message #698750] Wed, 20 July 2011 04:19 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
sorry i do not get what is Feature Seq Initializer?
Re: how to set properties for every node? [message #698785 is a reply to message #698742] Wed, 20 July 2011 04:21 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal Hossain
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
actually i want to set some properties in the editor. after running the program when i create a node there will be some attribute.when i click on the node, one box will show up and ask for the values of the attributes. I dont know wheather i can explain the scenaro..... Confused
Re: how to set properties for every node? [message #701164 is a reply to message #698785] Sun, 24 July 2011 14:44 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 558
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

ok feature seq initailizer is used to create automatically node with specific values for attributes.

I never do your scenario. It leans that each time soemone will create a new element from th epalette, it will pop a dialog to ask him which value he wants. Why don't initialize it with some values with Feature Seq Initializer and then let him edit them if he wants in Property view?

But for your use case, I Think that you should look at getCreateCommand of the CreationEditPolicy.

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:gmf:GenerateDiagramCode
Next Topic:One Shared Editing Domain for each data model
Goto Forum:
  


Current Time: Wed Jul 30 19:32:33 EDT 2014

Powered by FUDForum. Page generated in 0.01654 seconds