Skip to main content



      Home
Home » Modeling » Graphiti » Register EPackage before loading the diagram
Register EPackage before loading the diagram [message #1011984] Wed, 20 February 2013 11:21 Go to next message
Eclipse UserFriend
Hi,

I am building a graphiti project using emf.
When adding a Pictogram, I linked it with an emf object,everything went smoothly.

However,when loading the diagram,since the emf package is not registered using sth like "SomePackage.eInstance". The EObject returned by resource.eContents() were EDynamicObject. Can I put "SomePackage eInstance" somewhere so that resource.eContents() return the real emf objects rather than the dynamic ones?

Thanks.
Re: Register EPackage before loading the diagram [message #1011992 is a reply to message #1011984] Wed, 20 February 2013 11:34 Go to previous messageGo to next message
Eclipse UserFriend
There should be a registration of your model in the plugin.xml where
it's generated.

On 20/02/2013 5:21 PM, sakop qq wrote:
> Hi,
>
> I am building a graphiti project using emf.
> When adding a Pictogram, I linked it with an emf object,everything
> went smoothly.
>
> However,when loading the diagram,since the emf package is not
> registered using sth like "SomePackage.eInstance". The EObject
> returned by resource.eContents() were EDynamicObject. Can I put
> "SomePackage eInstance" somewhere so that resource.eContents() return
> the real emf objects rather than the dynamic ones?
>
> Thanks.
Re: Register EPackage before loading the diagram [message #1012265 is a reply to message #1011992] Thu, 21 February 2013 03:29 Go to previous message
Eclipse UserFriend
I added my emf model's project into the dependency list of the graphiti project, it worked, thanks
Previous Topic:Linking with my own ecore model
Next Topic:OPTION_SCHEMA_LOCATION has no effect
Goto Forum:
  


Current Time: Fri Jul 25 05:58:29 EDT 2025

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

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

Back to the top