Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » The use of Feature Seq Initializer(I want to create a figure with child nodes and initialize all the child nodes automatically at once)
The use of Feature Seq Initializer [message #494140] Thu, 29 October 2009 11:01 Go to next message
peter staelens is currently offline peter staelensFriend
Messages: 17
Registered: October 2009
Junior Member
Hi,

Probably a trivial question, but it would save me time if somebody can help me out.

I have a rectangle figure with 4 child references. When initializing the main figure I want all childs to be initialized as well. I suppose it is done with Feature Seq initializer. How is this used?

- child reference flowcontrol...
-- node mapping FlowControl/ControlPanelNode
--- FeatureSeq Initializer < FlowControl(flowstop)>
here starts the problem...
---- Feature Value Spec < flowstop:= new FlowStopImpl()>
----- Value Expression new FlowStopImpl() (java)

How do I instantiate the FlowStop class?

greetz,

Peter
Re: The use of Feature Seq Initializer [message #494164 is a reply to message #494140] Thu, 29 October 2009 12:51 Go to previous message
Olivier Marot is currently offline Olivier MarotFriend
Messages: 14
Registered: September 2009
Junior Member
Hi,

I'd say :

- child reference flowcontrol...
-- node mapping FlowControl/ControlPanelNode
--- FeatureSeq Initializer < FlowControl(flowstop)>
---- Reference New Element Spec<flowstop:= new FlowStop[1]>
----- Feature Seq Initializer<new FlowStop(xxx)>
------Feature Value Spec<xxx:= yyy>

xxx are the attributes that need to be non-null, typically the name.
Previous Topic:How are the ***EditPart classes coupled to the ***Impl classes
Next Topic:Total free Movable Anchors
Goto Forum:
  


Current Time: Fri Apr 26 07:46:04 GMT 2024

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

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

Back to the top