Bendpoint problem and the problem about trigger "Save" function on dialog [message #185158] |
Thu, 23 June 2005 07:58 |
Eclipse User |
|
|
|
Originally posted by: Greenbank.water.pku.edu.cn
Dear all:
I am sorry to trouble you for another time. When I am developing a
project using GEF in Eclipse 3.0.1, I suffer from two problems:
(1) The first one is about “bendpoint”. Because I had written the
programs in Eclipse 2.1.2 for the version 1, there are some errors when
I update version 1 to version 2 whose platform is Eclipse 3.0.1. The
problem is that when selecting a strait line as a connection without
bendpoint, the error
“Unhandled event loop exception Reason: java.lang.NullPointerException”
appears. And the strait line can not be identified. In the log file,
the detail is:
“ java.lang.NullPointerException
at
org.eclipse.gef.editpolicies.BendpointEditPolicy.createHandl esForUserBendpoints(BendpointEditPolicy.java:83)”
I do not know why this happened. So I need your help to solve this problem.
(2) The second one is about “dialog”. When right click a connection, a
dialog which is the subclass of “org.eclipse.jface.dialogs.Dialog” will
pop-up. I want to trigger the “save” function after click the button
“OK” of the dialog. So I want to know how to activate the “save” through
clicking the “Ok” button of dialog.
Thank you very much! I will be waiting for your reply.
Best wishes,
Your sincere, Greenbank
|
|
|
Powered by
FUDForum. Page generated in 0.03490 seconds