Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Bendpoint problem again
Bendpoint problem again [message #180719] Tue, 10 May 2005 03:30 Go to next message
Eclipse UserFriend
Originally posted by: Greenbank.water.pku.edu.cn

Hello!Randy and other guys:

I am sorry to trouble you again. A few days ago, I asked a question
about the bendpoint when updating our project from eclipse 2.1.2 to
eclipse 3.0.2, which is: when I select a connection with no bendpoint,
no new bendpoint is created automatically, and the
java.lang.NullPointerException occurs at the function
createHandlesForUserBendpoints in the class “BendpointEditPolicy”.


And you have suggested me to add an empty list as constraint for my
connection. I have made a try, but I find that the function
“SetRoutingConstraint” and “GetRoutingConstraint”of Connection are
interface function, so when I set a empty list, nothing has been done.
But in the function “refreshBendpoint” in the “logic” example, those two
functions work. So I want to ask where should I set the empty list for
my connection.

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 again [message #181053 is a reply to message #180719] Wed, 11 May 2005 23:49 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Are you not using any router?

Somebody else had complained about the same thing and in my workspace
BendpointEditPolicy checks to see if the routing constraint is null. Open a
bug report and I'll release the change.

"Greenbank" <Greenbank@water.pku.edu.cn> wrote in message
news:d5paa2$rfp$1@news.eclipse.org...
> Hello!Randy and other guys:
>
> I am sorry to trouble you again. A few days ago, I asked a question
> about the bendpoint when updating our project from eclipse 2.1.2 to
> eclipse 3.0.2, which is: when I select a connection with no bendpoint,
> no new bendpoint is created automatically, and the
> java.lang.NullPointerException occurs at the function
> createHandlesForUserBendpoints in the class "BendpointEditPolicy".
>
>
> And you have suggested me to add an empty list as constraint for my
> connection. I have made a try, but I find that the function
> "SetRoutingConstraint" and "GetRoutingConstraint"of Connection are
> interface function, so when I set a empty list, nothing has been done.
> But in the function "refreshBendpoint" in the "logic" example, those two
> functions work. So I want to ask where should I set the empty list for
> my connection.
>
> 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 fit a Scale in a ToolBar properly
Next Topic:Mouse Listener Problem
Goto Forum:
  


Current Time: Mon Jan 30 10:59:17 GMT 2023

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

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

Back to the top