Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Links disappear on Eclipse restart
Links disappear on Eclipse restart [message #487150] Tue, 22 September 2009 07:44 Go to next message
Janred  is currently offline Janred Friend
Messages: 20
Registered: August 2009
Junior Member
Hello all,

I have created a GMF Link Mapping between 2 nodes in my model.But since
I do not want to create a new class for this connection, I have
specified only the "Target feature" in the .gmfmap(no source or
containment feature set).

I can make a link mapping between my nodes and it stays on editor
refresh. But after I restart Eclipse the links are gone,but the model is
correct.

One more aspect is I am using TENEO for persistence but I am not sure if
this a gmf or teneo problem. Does anyone know of such a behaviour?


thx
Jan Red
Re: Links disappear on Eclipse restart [message #487268 is a reply to message #487150] Tue, 22 September 2009 15:38 Go to previous messageGo to next message
Janred  is currently offline Janred Friend
Messages: 20
Registered: August 2009
Junior Member
Jan Red schrieb:
> Hello all,
>
> I have created a GMF Link Mapping between 2 nodes in my model.But since
> I do not want to create a new class for this connection, I have
> specified only the "Target feature" in the .gmfmap(no source or
> containment feature set).
>
> I can make a link mapping between my nodes and it stays on editor
> refresh. But after I restart Eclipse the links are gone,but the model is
> correct.
>
> One more aspect is I am using TENEO for persistence but I am not sure if
> this a gmf or teneo problem. Does anyone know of such a behaviour?
>
>
> thx
> Jan Red


One more observation : when I create any top-level node the invisible
links appear again and stay till the the editor is closed.

I have debugged the XXXCanonicalEditPolicy and XXXDiagramUpdater with no
success so far

thx for any insight
Jan Red
Re: Links disappear on Eclipse restart [message #487301 is a reply to message #487150] Tue, 22 September 2009 17:33 Go to previous messageGo to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 159
Registered: August 2009
Senior Member
Hi Jan,

I had a similar problem with my editor.

When I created a file and did whatever work on it, I closed and opened it again, my links where not there. I don't know if you are having the same problem but this is how I resolved it and I hope that it might work for you too:

I hope this is right. I cannot find the submitted bug with the new forum Razz
So anyway, they described the exact same behaviour and said, that, to solve it, you have to go into your diagram plugin.xml and into the extension point:

- viewProviders

in there you have the edge and node points. (context). They will have semanticHints assosiated with them. Try deleting them and see if that will solve your problem. It solved mine.

Best regards,
artur


Janred wrote on Tue, 22 September 2009 03:44
Does anyone know of such a behaviour?


thx
Jan Red

Re: Links disappear on Eclipse restart [message #487376 is a reply to message #487301] Tue, 22 September 2009 23:12 Go to previous messageGo to next message
Martin Baez is currently offline Martin BaezFriend
Messages: 12
Registered: July 2009
Junior Member
I had a similar problem with a couple editors. These editors worked
perfeclty fine but when I tried to generate them again using the gmf
generator in eclipse Galileo I started having the same problem.



Artur Kronenberg wrote:
> Hi Jan,
>
> I had a similar problem with my editor.
>
> When I created a file and did whatever work on it, I closed and opened
> it again, my links where not there. I don't know if you are having the
> same problem but this is how I resolved it and I hope that it might work
> for you too:
>
> I hope this is right. I cannot find the submitted bug with the new forum
> :p So anyway, they described the exact same behaviour and said, that, to
> solve it, you have to go into your diagram plugin.xml and into the
> extension point:
>
> - viewProviders
>
> in there you have the edge and node points. (context). They will have
> semanticHints assosiated with them. Try deleting them and see if that
> will solve your problem. It solved mine.
>
> Best regards,
> artur
>
>
> Janred wrote on Tue, 22 September 2009 03:44
>> Does anyone know of such a behaviour?
>>
>>
>> thx
>> Jan Red
>
>
I
Re: Links disappear on Eclipse restart [message #487433 is a reply to message #487376] Wed, 23 September 2009 09:00 Go to previous messageGo to next message
Janred  is currently offline Janred Friend
Messages: 20
Registered: August 2009
Junior Member
@Arthur - Yes it solves the problem. Thank you. But I had to remove all
of the sematic hints for the Edge type from the plugin.xml. Cant guess
the after-effects though...!

Jan Red
Re: Links disappear on Eclipse restart [message #487517 is a reply to message #487433] Wed, 23 September 2009 13:45 Go to previous message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 159
Registered: August 2009
Senior Member
Hey Jan,

glad I could be of help.

The bug report actually said why the semantic hints where there like this. It had something to do with the diagram had to be initialized every single time it was opened. That was the whole problem. (I am not 100 % sure about that since I still couldn't find that report.. )
However for me I don't need to initialize it every time. I just need to open it in the same state I have saved it before.

So far I am working with GMF in that way for almost a month and haven't had any side effects by removing that.

By the way:
As far as I know those semantic hints were introduced by the latest version of GMF. They have not been there before and it was working, so I think we are good with that Smile

Best reagards,
Artur

Janred wrote on Wed, 23 September 2009 05:00
@Arthur - Yes it solves the problem. Thank you. But I had to remove all
of the sematic hints for the Edge type from the plugin.xml. Cant guess
the after-effects though...!

Jan Red

Previous Topic:links are not deleted
Next Topic:Synchronization between Navigator and Editor
Goto Forum:
  


Current Time: Fri Apr 26 23:59:54 GMT 2024

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

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

Back to the top