Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [Newbie] ID and IDRED in link mapping
[Newbie] ID and IDRED in link mapping [message #191354] Fri, 06 June 2008 07:58
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Hello,

I'm trying to link with GMF two attributes defined as:

<xsd:attribute name="pipe" type="xsd:ID" use="required"/>
..
..
<xsd:attribute name="pipe" type="xsd:IDREF" use="required"/>

I modeled the attributes with EMF using the annotation datatype ID and
IDREF, and I used a link map with only the target property set to
pipe:ID. As result I got:


!ENTRY org.eclipse.gmf.validate 4 300 2008-06-06 08:30:12.348
!MESSAGE Validation failed unexpectedly for 'Type Model Facet'. See log
for details.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.gmf.codegen.gmfgen.impl.GenNodeImpl.getReoriente dIncomingLinks(GenNodeImpl.java:555)
at
org.eclipse.gmf.codegen.gmfgen.impl.GenNodeImpl.eIsSet(GenNo deImpl.java:337)
at
org.eclipse.gmf.codegen.gmfgen.impl.GenChildNodeImpl.eIsSet( GenChildNodeImpl.java:164)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1235)
at
org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImp l.hasNext(EContentsEList.java:407)
at
org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImp l.next(EContentsEList.java:561)
at
org.eclipse.emf.ecore.util.EcoreUtil$CrossReferencer.handleC rossReference(EcoreUtil.java:1650)
at
org.eclipse.emf.ecore.util.EcoreUtil$CrossReferencer.crossRe ference(EcoreUtil.java:1626)
at
org.eclipse.emf.ecore.util.EcoreUtil$ExternalCrossReferencer .findExternalCrossReferences(EcoreUtil.java:1862)
at
org.eclipse.emf.ecore.util.EcoreUtil$ExternalCrossReferencer .find(EcoreUtil.java:1874)
at
org.eclipse.gmf.internal.validate.ExternModelImport.intializ eExternPackages(ExternModelImport.java:124)
at
org.eclipse.gmf.internal.validate.AbstractValidator.getExpre ssion(AbstractValidator.java:74)


What is wrong in this approach?
Thank you for the answer,
Cheers

Nicola
Previous Topic:Workbench freezes on label editing (GMF 2.1 / Ganymede)
Next Topic:Deleting Transitions manually
Goto Forum:
  


Current Time: Fri Apr 26 17:37:10 GMT 2024

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

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

Back to the top