|
Re: Ecore diagram with cross-document references [message #506533 is a reply to message #506525] |
Thu, 07 January 2010 21:14 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03758 seconds