Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Add parent element programmatically
Add parent element programmatically [message #377238] Thu, 03 August 2006 13:08 Go to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 2
Registered: July 2009
Junior Member
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 programmatically [message #377240 is a reply to message #377238] Thu, 03 August 2006 13:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Vikas,

It's best to ask this question on the GMF newsgroup.


Vikas Goyal wrote:
> 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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Add parent element programmatically [message #578392 is a reply to message #377238] Thu, 03 August 2006 13:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Vikas,

It's best to ask this question on the GMF newsgroup.


Vikas Goyal wrote:
> 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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Add parent element programmatically
Next Topic:Preliminary announcement
Goto Forum:
  


Current Time: Wed Apr 24 22:07:52 GMT 2024

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

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

Back to the top