Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create Share EditingDomain: Should all the metamodelType be replaced by specializationType in
How to create Share EditingDomain: Should all the metamodelType be replaced by specializationType in [message #207643] Wed, 01 October 2008 16:54 Go to next message
Zhang Peng is currently offline Zhang Peng
Messages: 30
Registered: July 2009
Member
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 17:13 Go to previous message
Zhang Peng is currently offline Zhang Peng
Messages: 30
Registered: July 2009
Member
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
Previous Topic:Drag-drop from Project Explorer to Diagram
Next Topic:DnD from different model element to GMF editor
Goto Forum:
  


Current Time: Fri Oct 31 10:09:23 GMT 2014

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

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