Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » using org.eclipse.gmf.runtime.emf.type.core.null with canononical polices
using org.eclipse.gmf.runtime.emf.type.core.null with canononical polices [message #64611] Tue, 17 October 2006 19:02 Go to next message
Eclipse UserFriend
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 18:38 Go to previous message
Linda Damus is currently offline Linda DamusFriend
Messages: 85
Registered: July 2009
Member
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
>
>
>
>
Previous Topic:Creating/Updating EditParts via EMF model elements
Next Topic:- initialization errors empty diagram
Goto Forum:
  


Current Time: Wed Jul 17 14:05:30 GMT 2024

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

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

Back to the top