Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Ecore diagram with cross-document references
Ecore diagram with cross-document references [message #506525] Thu, 07 January 2010 20:55 Go to next message
Paul Allen is currently offline Paul AllenFriend
Messages: 10
Registered: July 2009
Junior Member
I've manually constructed a pair of EMF projects in which one ecore model refers to a class in the other. Both models validate OK in the ecore editor. If I attempt to initialize an ecore_diagram file from the ecore file containing the cross-document reference, EcoreDiagramContentInitializer thows an NPE:

Caused by: java.lang.NullPointerException
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI nitializer.createEClass_1001Children(EcoreDiagramContentInit ializer.java:91)
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI nitializer.createNode(EcoreDiagramContentInitializer.java:30 1)
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI nitializer.createEPackage_79Children(EcoreDiagramContentInit ializer.java:289)
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI nitializer.initDiagramContent(EcoreDiagramContentInitializer .java:83)
at org.eclipse.emf.ecoretools.diagram.edit.commands.InitializeA ndLayoutDiagramCommand.doExecuteWithResult(InitializeAndLayo utDiagramCommand.java:60)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTr ansactionalCommand.doExecute(AbstractTransactionalCommand.ja va:247)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:150)
at org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
... 41 more

The resulting diagram is empty.

Should this work? Or is it too bleeding edge?

Paul Allen
Re: Ecore diagram with cross-document references [message #506533 is a reply to message #506525] Thu, 07 January 2010 21:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Paul,

It ought to work. Please open a bugzilla with an attachment containing
the projects needed to reproduce this problem. Please add me to the CC
list and I'll see if I can figure out what's going wrong.


Paul Allen wrote:
> I've manually constructed a pair of EMF projects in which one ecore
> model refers to a class in the other. Both models validate OK in the
> ecore editor. If I attempt to initialize an ecore_diagram file from
> the ecore file containing the cross-document reference,
> EcoreDiagramContentInitializer thows an NPE:
>
> Caused by: java.lang.NullPointerException
> at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI
> nitializer.createEClass_1001Children(EcoreDiagramContentInit
> ializer.java:91)
> at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI
> nitializer.createNode(EcoreDiagramContentInitializer.java:30 1)
> at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI
> nitializer.createEPackage_79Children(EcoreDiagramContentInit
> ializer.java:289)
> at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramContentI
> nitializer.initDiagramContent(EcoreDiagramContentInitializer .java:83)
> at org.eclipse.emf.ecoretools.diagram.edit.commands.InitializeA
> ndLayoutDiagramCommand.doExecuteWithResult(InitializeAndLayo
> utDiagramCommand.java:60)
> at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTr
> ansactionalCommand.doExecute(AbstractTransactionalCommand.ja va:247)
> at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr
> actEMFOperation.java:150)
> at org.eclipse.core.commands.operations.DefaultOperationHistory
> .execute(DefaultOperationHistory.java:511)
> ... 41 more
>
> The resulting diagram is empty.
>
> Should this work? Or is it too bleeding edge?
>
> Paul Allen


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:teneo, databinding, model and a treeview
Next Topic:Ecore diagram with cross-document references
Goto Forum:
  


Current Time: Thu Mar 28 22:30:51 GMT 2024

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

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

Back to the top