WorkspaceSynchronizer/Node problem? [message #487498] |
Wed, 23 September 2009 08:53  |
Eclipse User |
|
|
|
Originally posted by: dennis.freese.gmx.net
Hello all,
I have the following problem:
In my project there is one main editor and three subeditors. There are
three specific top level nodes, everyone represents a subeditor. In
every subeditor it is possible to create an object/node (which
represents a package/specialized package for every editor). Every time
when I create a package in my second subeditor, close the editor and do
a right click on an object in the main editor I will get a NPE from the
WorkspaceSynchronizer. This behavior occurs only in the second
subeditor. I compared the configuration
(Ecore-Model,Gen-Model,gmfMap,gmfgen, plugin.xml) between the editors
but I didn't find the error.
I found one entry in the newsgroups, which seams to be similar:
"syncronisation error with diag partitioning? [message #484229]".
Unfortunately there is no solution in this entry.
I think the usage of teneo for the persistence shouldn't be a problem.
Maybe someone has a hint for me, where I could find the error?
Thanks for the answers, I'm still searching the error.
Dennis
The exception I will get is:
java.lang.NullPointerException
at
org.eclipse.emf.workspace.util.WorkspaceSynchronizer.getFile (WorkspaceSynchronizer.java:265)
at
myapp.domain.diagram.part.DomainDiagramEditor.getNavigatorSe lection(DomainDiagramEditor.java:272)
at
myapp.domain.diagram.part.DomainDiagramEditor.getShowInConte xt(DomainDiagramEditor.java:260)
at
org.eclipse.ui.internal.services.WorkbenchSourceProvider.get Context(WorkbenchSourceProvider.java:422)
at
org.eclipse.ui.internal.services.WorkbenchSourceProvider.upd ateActivePart(WorkbenchSourceProvider.java:488)
at
org.eclipse.ui.internal.services.WorkbenchSourceProvider.upd ateActivePart(WorkbenchSourceProvider.java:449)
at
org.eclipse.ui.internal.services.WorkbenchSourceProvider.get CurrentState(WorkbenchSourceProvider.java:136)
at
org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.h andleEvent(WorkbenchSourceProvider.java:689)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:119 1)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations. java:1615)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2086)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3943 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1578)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2010)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589 )
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:978)
at org.eclipse.swt.widgets.Control.setFocus(Control.java:2965)
...
|
|
|
Re: WorkspaceSynchronizer/Node problem? [message #487734 is a reply to message #487498] |
Thu, 24 September 2009 05:31   |
Eclipse User |
|
|
|
Originally posted by: dennis.freese.gmx.net
Hello all,
I found the problem. In the ???DocumentProvider exists a
disposeElementInfo(...) function. In this function the
ResourceSetInfo-object will be disposed, but afterwards for creating a
context menu in the main editor the resource is needed. I use a shared
single editing domain.
The only question I have, is it correct, that the navigator selection
points to the freed resource?
I think it have to point to the element in the current open editor, or
I'm wrong?
Dennis
Dennis F schrieb:
> Hello all,
>
> I have the following problem:
>
> In my project there is one main editor and three subeditors. There are
> three specific top level nodes, everyone represents a subeditor. In
> every subeditor it is possible to create an object/node (which
> represents a package/specialized package for every editor). Every time
> when I create a package in my second subeditor, close the editor and do
> a right click on an object in the main editor I will get a NPE from the
> WorkspaceSynchronizer. This behavior occurs only in the second
> subeditor. I compared the configuration
> (Ecore-Model,Gen-Model,gmfMap,gmfgen, plugin.xml) between the editors
> but I didn't find the error.
> I found one entry in the newsgroups, which seams to be similar:
> "syncronisation error with diag partitioning? [message #484229]".
> Unfortunately there is no solution in this entry.
> I think the usage of teneo for the persistence shouldn't be a problem.
> Maybe someone has a hint for me, where I could find the error?
>
> Thanks for the answers, I'm still searching the error.
>
> Dennis
>
>
> The exception I will get is:
>
> java.lang.NullPointerException
> at
> org.eclipse.emf.workspace.util.WorkspaceSynchronizer.getFile (WorkspaceSynchronizer.java:265)
> at
> myapp.domain.diagram.part.DomainDiagramEditor.getNavigatorSe lection(DomainDiagramEditor.java:272)
> at
> myapp.domain.diagram.part.DomainDiagramEditor.getShowInConte xt(DomainDiagramEditor.java:260)
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.get Context(WorkbenchSourceProvider.java:422)
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.upd ateActivePart(WorkbenchSourceProvider.java:488)
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.upd ateActivePart(WorkbenchSourceProvider.java:449)
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.get CurrentState(WorkbenchSourceProvider.java:136)
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.h andleEvent(WorkbenchSourceProvider.java:689)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:119 1)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
> at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations. java:1615)
> at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2086)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3943 )
> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
> at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1578)
> at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2010)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589 )
> at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
> at org.eclipse.swt.widgets.Control.forceFocus(Control.java:978)
> at org.eclipse.swt.widgets.Control.setFocus(Control.java:2965)
> ...
|
|
|
Re: WorkspaceSynchronizer/Node problem? [message #488178 is a reply to message #487734] |
Fri, 25 September 2009 14:36  |
Eclipse User |
|
|
|
Hello Dennis,
> context menu in the main editor the resource is needed. I use a shared
> single editing domain.
Then you have to count editors openned with this EditingDomain and dispose
it only on closing last eidtor - corresponding code should be modified manually.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.03056 seconds