Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Exception in ShortestPathConnectionRouter
Exception in ShortestPathConnectionRouter [message #170001] Tue, 01 March 2005 10:33 Go to next message
Leonid Mokrushin is currently offline Leonid MokrushinFriend
Messages: 25
Registered: July 2009
Junior Member
I'm trying to replace the connection router (fan+shortestpath as in ediagram
example) on-the fly with a new one and I get the following exception when
the old router is being removed.

java.lang.NullPointerException
at
org.eclipse.draw2d.ShortestPathConnectionRouter.remove(Short estPathConnectionRouter.java:169)
at org.eclipse.draw2d.AutomaticRouter.remove(AutomaticRouter.ja va:135)
at
org.eclipse.draw2d.PolylineConnection.setConnectionRouter(Po lylineConnection.java:198)
at
org.eclipse.draw2d.ConnectionLayer.setConnectionRouter(Conne ctionLayer.java:80)
....

My diagram has supernodes which one can go into so that they become contents
of the root edit part. Everything works fine except the fan+sp routers still
route the contents of the inner node taking into account information about
figures of the outer diagram. So I want to refresh the router constraints
somehow.

/Leonid
Re: Exception in ShortestPathConnectionRouter [message #170639 is a reply to message #170001] Sun, 06 March 2005 04:21 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sounds like a connection is being removed which the router was not aware of
for some reason. Is that possible?

"Leonid Mokrushin" <leom@it.uu.se> wrote in message
news:d01gkk$p40$1@www.eclipse.org...
> I'm trying to replace the connection router (fan+shortestpath as in
> ediagram example) on-the fly with a new one and I get the following
> exception when the old router is being removed.
>
> java.lang.NullPointerException
> at
> org.eclipse.draw2d.ShortestPathConnectionRouter.remove(Short estPathConnectionRouter.java:169)
> at org.eclipse.draw2d.AutomaticRouter.remove(AutomaticRouter.ja va:135)
> at
> org.eclipse.draw2d.PolylineConnection.setConnectionRouter(Po lylineConnection.java:198)
> at
> org.eclipse.draw2d.ConnectionLayer.setConnectionRouter(Conne ctionLayer.java:80)
> ...
>
> My diagram has supernodes which one can go into so that they become
> contents of the root edit part. Everything works fine except the fan+sp
> routers still route the contents of the inner node taking into account
> information about figures of the outer diagram. So I want to refresh the
> router constraints somehow.
>
> /Leonid
>
>
Previous Topic:RectangleAnimation
Next Topic:A table impl based on JFace/GEF/Draw2D
Goto Forum:
  


Current Time: Thu Mar 28 12:47:07 GMT 2024

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

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

Back to the top