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 #621972] 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 #621973 is a reply to message #621972] Thu, 07 January 2010 21:14 Go to previous message
Ed Merks is currently online Ed MerksFriend
Messages: 31918
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:Ecore diagram with cross-document references
Next Topic:[Announce] Declaration for the Doc2Model Project. Creation Review successful
Goto Forum:
  


Current Time: Wed Jun 23 17:39:17 GMT 2021

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

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

Back to the top