Pbm EditDomain and GraphicalViewers [message #186464] |
Tue, 05 July 2005 15:26 |
Eclipse User |
|
|
|
Originally posted by: haghendestand.gmail.com
Hi,all
I have a MultiEditor with :
- a GraphicalEditor
- and a GraphicalEditorWithPalette
my problem is when i want to add a graphical Object with the pallette on
the graphicalViewers of the GraphicalEditorWithPalette , i have this error
:
java.lang.NullPointerException
at
org.eclipse.gef.tools.CreationTool.handleButtonDown(Creation Tool.java:161)
at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.ja va:946)
at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:215)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Pressed(DomainEventDispatcher.java:342)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown( LightweightSystem.java:523)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:132)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2778)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2472)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)
I had created two graphicalsViewers for the two editors and added it to
the EditDomain. But it seems like only one GraphicalViewers is active.
Have you got some ideas ??
Thanks
ps : sorry, for my english
|
|
|
Re: Pbm EditDomain and GraphicalViewers [message #186861 is a reply to message #186464] |
Thu, 07 July 2005 06:18 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Looks like bug 99095
"Perier Gwenael" <haghendestand@gmail.com> wrote in message
news:2b5ba6a6ac214e0c97438ceaf67e7ee8$1@www.eclipse.org...
> Hi,all
>
> I have a MultiEditor with :
> - a GraphicalEditor
> - and a GraphicalEditorWithPalette
>
> my problem is when i want to add a graphical Object with the pallette on
> the graphicalViewers of the GraphicalEditorWithPalette , i have this error
> :
>
>
> java.lang.NullPointerException
> at
> org.eclipse.gef.tools.CreationTool.handleButtonDown(Creation Tool.java:161)
> at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.ja va:946)
> at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:215)
> at
>
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Pressed(DomainEv
entDispatcher.java:342)
> at
>
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown( LightweightSyste
m.java:523)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:132)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2778)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2472)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:228)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:942)
> at org.eclipse.core.launcher.Main.main(Main.java:926)
>
>
> I had created two graphicalsViewers for the two editors and added it to
> the EditDomain. But it seems like only one GraphicalViewers is active.
>
> Have you got some ideas ??
>
> Thanks
>
> ps : sorry, for my english
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04278 seconds