Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Error in Mapping Model after Transform
Error in Mapping Model after Transform [message #163293] Thu, 29 November 2007 09:23 Go to next message
Eclipse UserFriend
Hi all,

Nearly have my GMF model interface working - have got an example to work,
but when I go to use my own ecore model I get as far as transforming the
Mapping Model into the Diagram Editor Gen Model. The Mapping Model has no
errors before I press transform and has errors after. When I click
Generate diagram editor in the on the Diagram Editor Gen Model I get the
following error:

Model loaded with errors.
uri=platform:/resource/MIKAELTest/model/SKOS.gmfgen
Resource '/MIKAELTest/model/SKOS.gmfgen' does not exist.
Resource '/MIKAELTest/model/SKOS.gmfgen' does not exist.

Anyone have any idea? Again thanks for your help!

Mark
Re: Error in Mapping Model after Transform [message #163320 is a reply to message #163293] Thu, 29 November 2007 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas.behnke1.gmx.de

Hi Mark,

there seems to be a model validation at transformation time which is
different from the validation performed on the mapping model directly.

The errors of this validation are listed in the problems tab. Provide
the messages of this errors here for further investigation!

Andreas



Mark Melia schrieb:
> Hi all,
>
> Nearly have my GMF model interface working - have got an example to
work, but when I go to use my own ecore model I get as far as
transforming the Mapping Model into the Diagram Editor Gen Model. The
Mapping Model has no errors before I press transform and has errors
after. When I click Generate diagram editor in the on the Diagram
Editor Gen Model I get the following error:
>
> Model loaded with errors.
uri=platform:/resource/MIKAELTest/model/SKOS.gmfgen
> Resource '/MIKAELTest/model/SKOS.gmfgen' does not exist.
> Resource '/MIKAELTest/model/SKOS.gmfgen' does not exist.
>
> Anyone have any idea? Again thanks for your help!
>
> Mark
>
Re: Error in Mapping Model after Transform [message #163541 is a reply to message #163320] Fri, 30 November 2007 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi all again,

First of all, thanks Andreas for getting back to me. I have been messing
around with the models, but without any luck.

The errors I now get when pressing the transform button are as follows:

Severity and Description Path Resource Location Creation Time Id
The required feature 'diagramLink' of 'Link Mapping
<{Concept.broaderThan:Concept}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458109 20826
The required feature 'diagramLink' of 'Link Mapping
<{Concept.conceptNote:Note}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458112 20827
The required feature 'diagramLink' of 'Link Mapping
<{Concept.conceptTerm:Term}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458106 20825
The required feature 'diagramLink' of 'Link Mapping
<{Concept.narrowerThan:Concept}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458115 20828
The required feature 'diagramLink' of 'Link Mapping
<{Concept.related:Concept}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458103 20824
The required feature 'diagramLink' of 'Link Mapping <Concept{}/>' must be
set MIKAELTest/model SKOS.gmfmap Unknown 1196443458100 20823


Any ideas???

Thanks,
Mark
Re: Error in Mapping Model after Transform [message #163611 is a reply to message #163541] Sun, 02 December 2007 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas.behnke1.gmx.de

Hi Mark,

I will try to explain what your mapping model is missing:

You have five links defined in your mapping:
broaderThan
conceptNote
conceptTerm
narrowerThan
related

These mappings must be linked to the visual representations in
your gmfgraph model. This model should contain "Connection" types
for these five link types. Look for something called "Connection
broaderThan" etc. If the gmfgraph model is missing these connections,
create the appropriate figures and connections. After that open
the Link Mapping "broarderThan" in your mapping model and set the
feature (in the properties tab) diagramLink to the newly created
connection of your graph model.

Hope this helps,

Andreas



Mark Melia wrote:
> Hi all again,
>
> First of all, thanks Andreas for getting back to me. I have been messing
> around with the models, but without any luck.
> The errors I now get when pressing the transform button are as follows:
>
> Severity and Description Path Resource Location Creation
> Time Id
> The required feature 'diagramLink' of 'Link Mapping
> <{Concept.broaderThan:Concept}/>' must be set MIKAELTest/model
> SKOS.gmfmap Unknown 1196443458109 20826
> The required feature 'diagramLink' of 'Link Mapping
> <{Concept.conceptNote:Note}/>' must be set MIKAELTest/model
> SKOS.gmfmap Unknown 1196443458112 20827
> The required feature 'diagramLink' of 'Link Mapping
> <{Concept.conceptTerm:Term}/>' must be set MIKAELTest/model
> SKOS.gmfmap Unknown 1196443458106 20825
> The required feature 'diagramLink' of 'Link Mapping
> <{Concept.narrowerThan:Concept}/>' must be set MIKAELTest/model
> SKOS.gmfmap Unknown 1196443458115 20828
> The required feature 'diagramLink' of 'Link Mapping
> <{Concept.related:Concept}/>' must be set MIKAELTest/model
> SKOS.gmfmap Unknown 1196443458103 20824
> The required feature 'diagramLink' of 'Link Mapping <Concept{}/>' must
> be set MIKAELTest/model SKOS.gmfmap Unknown 1196443458100
> 20823
>
>
> Any ideas???
>
> Thanks,
> Mark
>
Re: Error in Mapping Model after Transform [message #163665 is a reply to message #163611] Mon, 03 December 2007 06:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi All,

Thanks Andreas again. I am a guy playing the same stuff with Mark. I got
everything working except the generate diagram code.

A error in my generated code:

The import SKOS.provider cannot be resolve ----> import
SKOS.provider.SKOSItemProviderAdapterFactory;

A above import class does not exist. Any idea?

Thank you,
Wong.
Re: Error in Mapping Model after Transform [message #163681 is a reply to message #163665] Mon, 03 December 2007 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas.behnke1.gmx.de

Hi wong,

make shure you have created the "edit" plugin from your genmodel
and add this plugin to the dependencies of your diagram plugin.
The class xyzProviderAdapterFactory should be resolved than!

wong schrieb:
> Hi All,
>
> Thanks Andreas again. I am a guy playing the same stuff with Mark. I got
> everything working except the generate diagram code.
> A error in my generated code:
>
> The import SKOS.provider cannot be resolve ----> import
> SKOS.provider.SKOSItemProviderAdapterFactory;
> A above import class does not exist. Any idea?
>
> Thank you,
> Wong.
>
>
Re: Error in Mapping Model after Transform [message #164063 is a reply to message #163681] Tue, 04 December 2007 06:01 Go to previous message
Eclipse UserFriend
Thank you very much Andreas. It is sloved.
Wong.
Previous Topic:Programatically using a Label
Next Topic:IllegalStateException
Goto Forum:
  


Current Time: Thu May 08 18:26:02 EDT 2025

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

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

Back to the top