TargetMetaFeature [message #53936] |
Fri, 22 September 2006 09:38  |
Eclipse User |
|
|
|
Originally posted by: matthias.thiel.atip.de
Hello,
I'm trying to generate a plugin (or the source code of it) from an XSD file
by using the tutorial.
I generated the gmftool, gmfgraph, gmfmap and gmfgen files, but the
eclipse environment tells me that the targetMetaFeature in the gmfgen file
is missing (in links->modelFacet).
I would like to add it, but currently I have no understanding of the
gmfgen file and what a targetMetaFeature is, so I want to ask, if anyone
could explain it or if there is a documentation about the semantic of
these XML tags ?
Thanks in advance,
Matthias Thiel
|
|
|
Re: TargetMetaFeature [message #54058 is a reply to message #53936] |
Fri, 22 September 2006 10:34   |
Eclipse User |
|
|
|
There's no need to modify .gmfgen, the problem should be in the .gmfmap's
LinkMapping. Check that appropriate LinkMapping (you can tell this by domain
element) specifies correct Link Meta Feature ("Target Feature") - the one
that is set when the link gets its target.
Artem
"Matthias Thiel" <matthias.thiel@atip.de> wrote in message
news:bf0cdade34398db5d9a4b6bab8445d80$1@www.eclipse.org...
> Hello,
>
> I'm trying to generate a plugin (or the source code of it) from an XSD
> file
> by using the tutorial.
> I generated the gmftool, gmfgraph, gmfmap and gmfgen files, but the
> eclipse environment tells me that the targetMetaFeature in the gmfgen file
> is missing (in links->modelFacet).
> I would like to add it, but currently I have no understanding of the
> gmfgen file and what a targetMetaFeature is, so I want to ask, if anyone
> could explain it or if there is a documentation about the semantic of
> these XML tags ?
>
> Thanks in advance,
>
> Matthias Thiel
>
>
|
|
|
Re: TargetMetaFeature [message #54123 is a reply to message #54058] |
Fri, 22 September 2006 11:07   |
Eclipse User |
|
|
|
Originally posted by: matthias.thiel.atip.de
Thank you for the fast answer.
I could resolve this problem, but now I get InvocationTargetExceptions
when trying to generate the diagram code:
!SUBENTRY 1 org.eclipse.gmf.common 4 0 2006-09-22 17:00:16.503
!MESSAGE InvocationTargetException
!STACK 0
org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at
org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:394)
at
org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:367)
at
org.eclipse.gmf.internal.common.codegen.JETEmitterAdapter.ge nerate(JETEmitterAdapter.java:35)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:325)
at
org.eclipse.gmf.codegen.util.Generator.internalGenerateJavaC lass(Generator.java:940)
at
org.eclipse.gmf.codegen.util.Generator.generateNodeGraphical NodeEditP
olicy(Generator.java:463)
at
org.eclipse.gmf.codegen.util.Generator.generateNode(Generato r.java:231)
at
org.eclipse.gmf.codegen.util.Generator.customRun(Generator.j ava:116)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun( GeneratorBase.java:408)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(Ge neratorBase.java:69)
at
org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTempla tesAction.run(ExecuteTemplatesAction.java:120)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:386)
... 11 more
Caused by: java.lang.NullPointerException
at
org.eclipse.gmf.codegen.templates.policies.NodeGraphicalNode EditPolicyGenerator.generate(NodeGraphicalNodeEditPolicyGene rator.java:89)
... 15 more
Do you have an idea ?
regards,
Matthias
Artem Tikhomirov wrote:
> There's no need to modify .gmfgen, the problem should be in the .gmfmap's
> LinkMapping. Check that appropriate LinkMapping (you can tell this by
> domain element) specifies correct Link Meta Feature ("Target Feature") -
> the one that is set when the link gets its target.
>
> Artem
>
> "Matthias Thiel" <matthias.thiel@atip.de> wrote in message
> news:bf0cdade34398db5d9a4b6bab8445d80$1@www.eclipse.org...
>> Hello,
>>
>> I'm trying to generate a plugin (or the source code of it) from an XSD
>> file
>> by using the tutorial.
>> I generated the gmftool, gmfgraph, gmfmap and gmfgen files, but the
>> eclipse environment tells me that the targetMetaFeature in the gmfgen
>> file is missing (in links->modelFacet).
>> I would like to add it, but currently I have no understanding of the
>> gmfgen file and what a targetMetaFeature is, so I want to ask, if anyone
>> could explain it or if there is a documentation about the semantic of
>> these XML tags ?
>>
>> Thanks in advance,
>>
>> Matthias Thiel
>>
>>
|
|
|
Re: TargetMetaFeature [message #54278 is a reply to message #54123] |
Fri, 22 September 2006 12:31  |
Eclipse User |
|
|
|
There's smth wrong with one of GenNodes, I suppose. Perhaps, missing or
incomplete ModelFacet. This should not happen if validation for your models
says OK.
Artem
"Matthias Thiel" <matthias.thiel@atip.de> wrote in message
news:ef0u7j$srm$1@utils.eclipse.org...
>
> Thank you for the fast answer.
> I could resolve this problem, but now I get InvocationTargetExceptions
> when trying to generate the diagram code:
>
> !SUBENTRY 1 org.eclipse.gmf.common 4 0 2006-09-22 17:00:16.503
> !MESSAGE InvocationTargetException
> !STACK 0
> org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
> at
> org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:394)
> at
> org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:367)
> at
> org.eclipse.gmf.internal.common.codegen.JETEmitterAdapter.ge nerate(JETEmitterAdapter.java:35)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:325)
> at
> org.eclipse.gmf.codegen.util.Generator.internalGenerateJavaC lass(Generator.java:940)
> at
> org.eclipse.gmf.codegen.util.Generator.generateNodeGraphical NodeEditP
> olicy(Generator.java:463)
> at
> org.eclipse.gmf.codegen.util.Generator.generateNode(Generato r.java:231)
> at
> org.eclipse.gmf.codegen.util.Generator.customRun(Generator.j ava:116)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun( GeneratorBase.java:408)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(Ge neratorBase.java:69)
> at
> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTempla tesAction.run(ExecuteTemplatesAction.java:120)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:386)
> ... 11 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.gmf.codegen.templates.policies.NodeGraphicalNode EditPolicyGenerator.generate(NodeGraphicalNodeEditPolicyGene rator.java:89)
> ... 15 more
>
> Do you have an idea ?
>
> regards,
>
> Matthias
>
>
> Artem Tikhomirov wrote:
>
>> There's no need to modify .gmfgen, the problem should be in the .gmfmap's
>> LinkMapping. Check that appropriate LinkMapping (you can tell this by
>> domain element) specifies correct Link Meta Feature ("Target Feature") -
>> the one that is set when the link gets its target.
>>
>> Artem
>>
>> "Matthias Thiel" <matthias.thiel@atip.de> wrote in message
>> news:bf0cdade34398db5d9a4b6bab8445d80$1@www.eclipse.org...
>>> Hello,
>>>
>>> I'm trying to generate a plugin (or the source code of it) from an XSD
>>> file
>>> by using the tutorial.
>>> I generated the gmftool, gmfgraph, gmfmap and gmfgen files, but the
>>> eclipse environment tells me that the targetMetaFeature in the gmfgen
>>> file is missing (in links->modelFacet).
>>> I would like to add it, but currently I have no understanding of the
>>> gmfgen file and what a targetMetaFeature is, so I want to ask, if anyone
>>> could explain it or if there is a documentation about the semantic of
>>> these XML tags ?
>>>
>>> Thanks in advance,
>>>
>>> Matthias Thiel
>>>
>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04487 seconds