Something about ActionBarcontributor and action of movement [message #206176] |
Mon, 26 December 2005 07:43 |
Eclipse User |
|
|
|
Originally posted by: 257wheat.gmail.com
I have met with two strange problems:
First Q:
I want to realize the function of Alignment.But when I run the
project at the run-time wokbench ,I found that the menus of Alignment on
the toolBar were deactivated ,though I have selected two nodes.My Editor
is jdt editor and I add a graphicalViewer into it.
Second Q:
When I drag a node on the canvas ,it can not be moved ,but can be
resized.After resized ,it can be moved.I debugged my source code and found
when the request's type is "move",the function
"getConstraintFor((ChangeBoundsRequest)request,child)" generate a
NULLPointer Exception!But the request's type is "resize",it return a
retangle.I continue to debug and found
" child.getFigure().getParent().getLayoutManager().getConstrai nt(child.getFigure()) "
return NULL! And "child.getFigure().getParent().getLayoutManager()" does
OK!
How should I do to deal with these two problems?
|
|
|
|
Re: Something about ActionBarcontributor and action of movement [message #206211 is a reply to message #206192] |
Tue, 27 December 2005 01:54 |
Eclipse User |
|
|
|
Originally posted by: 257wheat.gmail.com
Thanks for your help,Jin.
About Q1:
I want to know what does the "entries" mean? It's the
"Editor"?And I have been reading the source code of Logical.Ha, I forgot
to tell that I can realize the contextMenu of Alignment,but not the
ToolBar!It's strange! Perhaps,you can tell me something about how should I
do when I want to realize the ActionBar of Alignment for the
graphicalViewer of a jdt Editor?
About Q2:
I could not mail to you the whole project because of some reason
I'm sorry--if you would like ,could I send part of the code to you?For
example,the correlative code for a label?
Thanks!
:)
|
|
|
Powered by
FUDForum. Page generated in 0.02380 seconds