Bendpoint problem again [message #180719] |
Mon, 09 May 2005 23:30  |
Eclipse User |
|
|
|
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 19:49  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04013 seconds