Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add parent element while adding child
Add parent element while adding child [message #8150] Mon, 07 August 2006 06:31 Go to next message
Eclipse UserFriend
Originally posted by: vikas.goyal.hp.com

Hi,

I am trying to use GMF to create a model for CCXML.

My structure is something like this.

<CCXML>

<AssignType>
</AssignType>
<EventProcessor>
<TransitionType>
<AssignType>
</AssignType>
</TransitionType>
</EventProcessor>
</CCXML>

In this AssignType can come directly within root element i.e CCXML or it
can come under TransitionType.

I was wondering if I try to drop AssignType from the palette within
Eventprocessor can I create its parent node also i.e TransitionType .

I have tried to modify
CCXMLItemSemanticEditPolicy->CreateAssignTypeCommand, but could not able
to proceed.
Please suggest me some example to implement this.

Thanks in Advance

Regards
-Vikas
Re: Add parent element while adding child [message #10032 is a reply to message #8150] Tue, 08 August 2006 17:34 Go to previous message
Linda Damus is currently offline Linda DamusFriend
Messages: 85
Registered: July 2009
Member
Hello Vikas,

I don't think that we have an example that demonstrates creating the
container element at the same time as creating the new element. But all
you would need to do is return a command that (in its
#doExecuteWithResult) first creates the container element, and then
creates its child.

Regards,
Linda
Previous Topic:The overwrited method setFocus nerver be called, why? a bug?
Next Topic:Development Guidelines moved to Wiki
Goto Forum:
  


Current Time: Sat Oct 19 20:29:37 GMT 2024

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

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

Back to the top