using org.eclipse.gmf.runtime.emf.type.core.null with canononical polices [message #64611] |
Tue, 17 October 2006 15:02  |
Eclipse User |
|
|
|
Originally posted by: vcciubot.uwaterloo.ca
The GMF developer guide explains how to use specialization types of
org.eclipse.gmf.runtime.emf.type.core.null to model non-structural
elements in a diagram. Such types work great if I start a diagram from
scratch and make changes using tools and use the edit helpers to match the
behaviour to the model.
Can a diagram that uses specialization types of
org.eclipse.gmf.runtime.emf.type.core.null be synchronized with the model
using (customized) canonical policies?
Basically, I don't know what to return in
CanonicalPolicy#getChildrenList(), CanonicalConnection#getConnectionList()
etc.
Otherwise, is there a preexisting Ecore model that I can use for this
purpose?
Searching through the gmf source files I wasn't able to find an element
type declaration for org.eclipse.gmf.runtime.emf.type.core.null, I was
thinking to use the same EClass.
thanks for your help!
vlad
|
|
|
Re: using org.eclipse.gmf.runtime.emf.type.core.null with canononical polices [message #68145 is a reply to message #64611] |
Mon, 23 October 2006 14:38  |
Eclipse User |
|
|
|
Hi Vlad,
I'm not sure that I understand your question. Could you describe what
you are trying to achieve? Do you want the editing behaviour defined in
your specializations of the NullElementType to be applied to existing
shapes/edges on your diagram?
Regarding the element type declaration for the NullElementType (with ID
"org.eclipse.gmf.runtime.emf.type.core.null"), it is registered
dynamically with the element type registry (not through XML). It
doesn't have an EClass. It can be specialized to define types that do
not correspond to objects in the domain model (e.g., to represent a
reference relationship).
Cheers,
Linda
Vlad Ciubotariu wrote:
> The GMF developer guide explains how to use specialization types of
> org.eclipse.gmf.runtime.emf.type.core.null to model non-structural
> elements in a diagram. Such types work great if I start a diagram from
> scratch and make changes using tools and use the edit helpers to match the
> behaviour to the model.
>
> Can a diagram that uses specialization types of
> org.eclipse.gmf.runtime.emf.type.core.null be synchronized with the model
> using (customized) canonical policies?
>
> Basically, I don't know what to return in
> CanonicalPolicy#getChildrenList(), CanonicalConnection#getConnectionList()
> etc.
>
> Otherwise, is there a preexisting Ecore model that I can use for this
> purpose?
>
> Searching through the gmf source files I wasn't able to find an element
> type declaration for org.eclipse.gmf.runtime.emf.type.core.null, I was
> thinking to use the same EClass.
>
> thanks for your help!
>
> vlad
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03645 seconds