|
Re: Exception in ShortestPathConnectionRouter [message #170639 is a reply to message #170001] |
Sun, 06 March 2005 04:21 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03799 seconds