Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Something about ActionBarcontributor and action of movement
Something about ActionBarcontributor and action of movement [message #206176] Mon, 26 December 2005 07:43 Go to next message
Eclipse UserFriend
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 #206192 is a reply to message #206176] Mon, 26 December 2005 13:55 Go to previous messageGo to next message
Jin Missing name is currently offline Jin Missing nameFriend
Messages: 100
Registered: July 2009
Senior Member
wheat:

First Q:
I have met this problem before, but I've forgot how to solve this problem
exactly^_^ It's not a big problem. One sure thing is, there are some
mistakes made by you in your entries, try see some exmaple's codes(Classic
- Logic Example).

Second Q:
Strange, and not seem to see this case before. Is it possible to post your
project if convenient?

Jin
Re: Something about ActionBarcontributor and action of movement [message #206211 is a reply to message #206192] Tue, 27 December 2005 01:54 Go to previous message
Eclipse UserFriend
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!
:)
Previous Topic:shapes rcp : dependencies not resolved
Next Topic:bug? ImageFigure with border and localCoordinates
Goto Forum:
  


Current Time: Thu Apr 25 21:02:26 GMT 2024

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

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

Back to the top