How to create Share EditingDomain: Should all the metamodelType be replaced by specializationType in [message #207643] |
Wed, 01 October 2008 12:54  |
Eclipse User |
|
|
|
Hi, All
I have searched all messages in the newsgroup using 'Share
EditingDomain' key words, but can not find the answer.
Following step 10 of the GMFTips(http://wiki.eclipse.org/GMF_Tips), we
have to change the metamodelType of our diagram
element(shape.diagram2.Diagram_1001) into specializationType.
It said:
--------------------------------------------------
"<metamodelType
id="shape.diagram2.Diagram_1001"
name="Undefined"
kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
eclass="Diagram"
edithelper="shape.diagram.edit.helpers.DiagramEditHelper">
<param name="semanticHint" value="1001"/>
</metamodelType>
Should be replaced with:
<specializationType
id="shape.diagram2.Diagram_1001"
name="Undefined"
kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
edithelperadvice=" org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEdi tHelperAdvice ">
<specializes id="shape.diagram1.Diagram_1000"/>
<param name="semanticHint" value="1001"/>
</specializationType>
"
---------------------------------------------------
Should we change all other elements' metamodelType into
specializationType? If the answer is YES, how can we assign the
specializes id to them? Because the Diagram2 contains different edit
parts with Diagram1!
Need your help, 3ks!
Peng Zhang
|
|
|
Re: How to create Share EditingDomain: Should all the metamodelType be replaced by specializationTyp [message #207651 is a reply to message #207643] |
Wed, 01 October 2008 13:13  |
Eclipse User |
|
|
|
I understood. We just need to change dumplicated elements.
Peng Zhang
Peng Zhang 写道:
> Hi, All
>
> I have searched all messages in the newsgroup using 'Share
> EditingDomain' key words, but can not find the answer.
>
> Following step 10 of the GMFTips(http://wiki.eclipse.org/GMF_Tips), we
> have to change the metamodelType of our diagram
> element(shape.diagram2.Diagram_1001) into specializationType.
>
> It said:
> --------------------------------------------------
> "<metamodelType
> id="shape.diagram2.Diagram_1001"
> name="Undefined"
> kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
> eclass="Diagram"
> edithelper="shape.diagram.edit.helpers.DiagramEditHelper">
> <param name="semanticHint" value="1001"/>
> </metamodelType>
>
> Should be replaced with:
>
> <specializationType
> id="shape.diagram2.Diagram_1001"
> name="Undefined"
> kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
>
> edithelperadvice=" org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEdi tHelperAdvice ">
>
> <specializes id="shape.diagram1.Diagram_1000"/>
> <param name="semanticHint" value="1001"/>
> </specializationType>
> "
> ---------------------------------------------------
>
> Should we change all other elements' metamodelType into
> specializationType? If the answer is YES, how can we assign the
> specializes id to them? Because the Diagram2 contains different edit
> parts with Diagram1!
>
> Need your help, 3ks!
>
> Peng Zhang
|
|
|
Powered by
FUDForum. Page generated in 0.06708 seconds