Add parent element programmatically [message #377238] |
Thu, 03 August 2006 09:08  |
Eclipse User |
|
|
|
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 09:43  |
Eclipse User |
|
|
|
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
>
|
|
|
Re: Add parent element programmatically [message #578392 is a reply to message #377238] |
Thu, 03 August 2006 09:43  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.06116 seconds