Skip to main content



      Home
Home » Eclipse Projects » GEF » Need helps dnd !!!
Need helps dnd !!! [message #13214] Sun, 14 July 2002 18:28 Go to next message
Eclipse UserFriend
Originally posted by: asmv.free.fr

Hi,

I'm using GEF. I run into a problem, I cannot figure out where is wrong. I
need your light.

I develop a diagram editor much like LogicEditor example. When I load the
diagram first time, everyting is fine. But since the second time and when
I move the figure in the diagram, and then save in the file, I got
following message:

When I save my diagram

Unhandled exception caught in event loop.
Reason:
Failed to execute runnable (java.lang.NullPointerException)

*** Stack trace of contained exception ***
Reason:
java.lang.NullPointerException


Could someone tell me what's wrong ? Or How to identify where is error. I
know there is the debug mode flags in GEF, but I do'nt know how to turn
them on.

Thanks
Re: Need helps dnd !!! [message #13243 is a reply to message #13214] Mon, 15 July 2002 00:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Hi!

"Julien" <asmv@free.fr> schrieb im Newsbeitrag
news:agstu8$u22$1@rogue.oti.com...

> Could someone tell me what's wrong ? Or How to identify where is error. I
> know there is the debug mode flags in GEF, but I do'nt know how to turn
> them on.

Well, probably there is a problem with you model, edit parts or commands ;)

You need to look in the eclipse log file. If you can't find it, try to move
the existing log first and then start eclipse. Thus, you will have a new log
created that should contain only your exceptions.

Anyway it may be necessary to debug your application to find the problem.

Cu, Gunnar
Re: Need helps dnd !!! [message #13326 is a reply to message #13243] Mon, 15 July 2002 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: asmv.free.fr

Hi Gunnar,

Thanks for your repling.

Gunnar Wagenknecht wrote:

> Hi!

> "Julien" <asmv@free.fr> schrieb im Newsbeitrag
> news:agstu8$u22$1@rogue.oti.com...

> > Could someone tell me what's wrong ? Or How to identify where is error. I
> > know there is the debug mode flags in GEF, but I do'nt know how to turn
> > them on.

> Well, probably there is a problem with you model, edit parts or commands ;)

> You need to look in the eclipse log file. If you can't find it, try to move
> the existing log first and then start eclipse. Thus, you will have a new log
> created that should contain only your exceptions.

In the log file, there is indeed a stack message as:

org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:1887)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:96)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1504)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1292)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1085)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:739)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
!ENTRY org.eclipse.core.resources 1 4 Jul 14, 2002 13:36:55.608

Un fortunately, it doesn't gibe me more information.

> Anyway it may be necessary to debug your application to find the problem.

In fact, I spent two days on debugging this problem. I put the breakpoints
in execute() of each commandes. But the system doesn't fail into at all. I
noticed my application work fine anyway and it happens only I use DnD to
move a Figure in GraphicalView.

Julien
> Cu, Gunnar
Re: Need helps dnd !!! [message #13468 is a reply to message #13326] Mon, 15 July 2002 12:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

Are you *really* using native drag and drop, or are you just dragging a
figure using the GEF Tools (which just use MouseMove/Button events).
Re: Need helps dnd !!! - case closed [message #13613 is a reply to message #13468] Tue, 16 July 2002 06:45 Go to previous message
Eclipse UserFriend
Originally posted by: asmv.free.fr

Randy Hudson wrote:

> Are you *really* using native drag and drop, or are you just dragging a
> figure using the GEF Tools (which just use MouseMove/Button events).

Hi all,

Thanks for your concernes.

I'd succeeded in fixing this problem. It is because my previous closed
editor doesn't call dispose(). I'm shamed in my self.

Julien
Previous Topic:TreeEditors and GEF
Next Topic:ActionBarContributor
Goto Forum:
  


Current Time: Wed Apr 30 12:01:07 EDT 2025

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

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

Back to the top