Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » syncronisation error with diag partitioning?
syncronisation error with diag partitioning? [message #484229] Fri, 04 September 2009 16:33 Go to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I'm getting the following NPE error
org.eclipse.emf.workspace.util.WorkspaceSynchronizer.getFile (WorkspaceSynchronizer.java:265)

I have an editor that is using a hybrid GMF-GEF domain, I click on a
node in the GMF editor to open a new sub editor. If I save my content
in the sub editor and move back to my main editors I get loads of
repeated NPE's occuring and the error dialog is very difficult to kill


However, the contents of my sub editor are saved in my main editors.
If I eventually manage to quit the editor and reopen the diagram
everything is OK until I try to do something else.

The nodes of my sub editor exist in my main diag file. The node I
click on is a subclass of an abstract superclass. Canvas map doesn't
allow abstract classes so I have had to create a sub editor for each
concrete sub class

Does the fact that my main editor shares an editing domain cause issues
ie I need to customise the GEF editor also?

As a test I tried the following...
I tried a different simple example GMF model with just a couple of nodes
and that works OK, the only thing being different is that in my complex
editor GMF & GEF have a common editing domain

regards
Steve
Re: syncronisation error with diag partitioning? [message #484233 is a reply to message #484229] Fri, 04 September 2009 16:51 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

Looks like some od the resoruces was unloaded by one editor and corresponding
references were still used by another one.

-----------------
Alex Shatalin
Re: syncronisation error with diag partitioning? [message #484256 is a reply to message #484233] Fri, 04 September 2009 20:18 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Alex Shatalin wrote:
> Hello Bill,
>
> Looks like some od the resoruces was unloaded by one editor and
> corresponding references were still used by another one.
>
> -----------------
> Alex Shatalin
>
>
Hi Alex

I notice that if I quit the full editor after opening the
sub editor then the errors don't seem to occur. Then if I
make my edits in the sub editor save and quit then when I
re-open the full editor I still don't get the errors, hence
some kind of synch error. ie only one editor open at once

Do you think this is a bug, feature or error on my part?

I used the method here http://www.jevon.org/wiki/GMF_Diagram_Partitioning

as my example

regards
Steve
Re: syncronisation error with diag partitioning? [message #484382 is a reply to message #484256] Mon, 07 September 2009 10:24 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Bill,

> Do you think this is a bug, feature or error on my part?
I suppose something wrong with "hybrid GMF-GEF domain"..
But it definitely can ba a bug in GMF. Looks like you have to investigate
this problem a bit more to realize if it's a GMF problem or a bug in your
code.

-----------------
Alex Shatalin
Previous Topic:Laying out optional visual elements
Next Topic:GMF with Extended EMF Model
Goto Forum:
  


Current Time: Fri Apr 26 23:30:48 GMT 2024

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

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

Back to the top