Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Bendpoint problem while updating project to Eclipse 3.0.2
Bendpoint problem while updating project to Eclipse 3.0.2 [message #179506] Thu, 28 April 2005 04:14 Go to next message
Eclipse UserFriend
Originally posted by: Greenbank.water.pku.edu.cn

Hi!Randy and other guys:
I am updating an early project from eclipse 2.1.2 to eclipse 3.0.2; and
I find a problem in the process: when we run our project, if we select a
straight line(there is no bendpoint at first),so a bendpoint should be
created automatically, and the java.lang.NullPointerException occurs at

org.eclipse.gef.editpolicies.BendpointEditPolicy.createHandl esForUserBendpoints(BendpointEditPolicy.java:83)


we track in the function createHandlesForUserBendpoints and we find that
the codes which raise the exception:
if (!bendPoints.isEmpty())currBendPoint =
((Bendpoint)bendPoints.get(0)).getLocation();
Those codes do not exist in GEF 1.0; they are new added in GEF2.0 for
Eclipse3.0;
So how can I adjust my programs to solve this problem?
Thanks a lot!


TANG Lv-an (Greenbank)
Center of Information & Science
School of Electronics Engineering and Computer Science
Peking University
Telephone: 86-010-62759092 13522662621
Email: Tangla@cis.pku.edu.cn Greenbank@water.pku.edu.cn
Re: Bendpoint problem while updating project to Eclipse 3.0.2 [message #179548 is a reply to message #179506] Thu, 28 April 2005 14:13 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

BendpointEditPolicy always requires a connection routing constraint of a
List. NULL is not a valid routing constraint. Anyway, the solution is that
you either shouldn't be using bendpointEditPolicy, or, your connection
should have an empty list as its constraint.

"Greenbank" <Greenbank@water.pku.edu.cn> wrote in message
news:d4po3k$u0p$1@news.eclipse.org...
> Hi!Randy and other guys:
> I am updating an early project from eclipse 2.1.2 to eclipse 3.0.2; and I
> find a problem in the process: when we run our project, if we select a
> straight line(there is no bendpoint at first),so a bendpoint should be
> created automatically, and the java.lang.NullPointerException occurs at
>
> org.eclipse.gef.editpolicies.BendpointEditPolicy.createHandl esForUserBendpoints(BendpointEditPolicy.java:83)
>
> we track in the function createHandlesForUserBendpoints and we find that
> the codes which raise the exception:
> if (!bendPoints.isEmpty())currBendPoint =
> ((Bendpoint)bendPoints.get(0)).getLocation();
> Those codes do not exist in GEF 1.0; they are new added in GEF2.0 for
> Eclipse3.0;
> So how can I adjust my programs to solve this problem?
> Thanks a lot!
>
>
> TANG Lv-an (Greenbank)
> Center of Information & Science
> School of Electronics Engineering and Computer Science
> Peking University
> Telephone: 86-010-62759092 13522662621
> Email: Tangla@cis.pku.edu.cn Greenbank@water.pku.edu.cn
Previous Topic:How to prevent DirectEdit when the mouse give the focus to the EditorPart?
Next Topic:help with LayoutManagers
Goto Forum:
  


Current Time: Mon Jan 30 12:39:34 GMT 2023

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

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

Back to the top