Skip to main content



      Home
Home » Eclipse Projects » GEF » Connection Problems
Connection Problems [message #115200] Mon, 02 February 2004 10:59 Go to next message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

I have been using the logic example to follow along and build a
graphical editor. I am able to drop nodes (I extended draw2d.Label) on
the editor and am trying to get connections between them.

The first problem is that when I click on the terminal of a node with
the Connection tool selected in the palette, the connection is drawn
from the upper corner of the diagram instead of at the terminal of the node.

I have searched high and low through the logic example and I do not see
what I am missing.

Any help would be greatly appreciated.

Thanks,
Phil
Re: Connection Problems [message #115225 is a reply to message #115200] Mon, 02 February 2004 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

What edit policies have you installed for your edit parts that are being
connected?

One thing you may want to try is to set a breakpoint in handleButtonDown in
ConnectionCreationTool which will halt execution when you mouse down to
create a connection, and then compare the flow of execution with the
LogicEditor to see what's different.

"Phil Williams" <phil.williams@toadmail.com> wrote in message
news:bvls19$2bb$1@eclipse.org...
> I have been using the logic example to follow along and build a
> graphical editor. I am able to drop nodes (I extended draw2d.Label) on
> the editor and am trying to get connections between them.
>
> The first problem is that when I click on the terminal of a node with
> the Connection tool selected in the palette, the connection is drawn
> from the upper corner of the diagram instead of at the terminal of the
node.
>
> I have searched high and low through the logic example and I do not see
> what I am missing.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Phil
Re: Connection Problems [message #115252 is a reply to message #115225] Mon, 02 February 2004 13:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

Whitney,

Thanks for the help. Although chalk this one up to operator error. :)
It seems that as I am going about the development I am adding pieces as
I need them, well, all the getters and setters that I added to the base
editor part to handle the connections had already been implmented on the
extended classes to return null. So GEF was never seeing the connection
anchors.

DOH!

Phil

Whitney Sorenson wrote:

> What edit policies have you installed for your edit parts that are being
> connected?
>
> One thing you may want to try is to set a breakpoint in handleButtonDown in
> ConnectionCreationTool which will halt execution when you mouse down to
> create a connection, and then compare the flow of execution with the
> LogicEditor to see what's different.
>
> "Phil Williams" <phil.williams@toadmail.com> wrote in message
> news:bvls19$2bb$1@eclipse.org...
>
>>I have been using the logic example to follow along and build a
>>graphical editor. I am able to drop nodes (I extended draw2d.Label) on
>>the editor and am trying to get connections between them.
>>
>>The first problem is that when I click on the terminal of a node with
>>the Connection tool selected in the palette, the connection is drawn
>>from the upper corner of the diagram instead of at the terminal of the
>
> node.
>
>>I have searched high and low through the logic example and I do not see
>>what I am missing.
>>
>>Any help would be greatly appreciated.
>>
>>Thanks,
>>Phil
>
>
>
Re: Connection Problems [message #115412 is a reply to message #115200] Tue, 03 February 2004 12:55 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You are not implementing the NodeEditPart interface. The tutorial talks
about this interface.

"Phil Williams" <phil.williams@toadmail.com> wrote in message
news:bvls19$2bb$1@eclipse.org...
> I have been using the logic example to follow along and build a
> graphical editor. I am able to drop nodes (I extended draw2d.Label) on
> the editor and am trying to get connections between them.
>
> The first problem is that when I click on the terminal of a node with
> the Connection tool selected in the palette, the connection is drawn
> from the upper corner of the diagram instead of at the terminal of the
node.
>
> I have searched high and low through the logic example and I do not see
> what I am missing.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Phil
Previous Topic:...gef.ui.actions.DeleteAction not found
Next Topic:Ensuring a child fits in the parent figure
Goto Forum:
  


Current Time: Mon May 05 02:03:45 EDT 2025

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

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

Back to the top