Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drawing error while creating a new Connection
Drawing error while creating a new Connection [message #167725] Thu, 10 February 2005 14:34 Go to next message
Eclipse UserFriend
Originally posted by: daniel.luebke.inf.uni-hannover.de

Hi,

I'm just learning GEF development and took the Shapes example in order
to learn it and did a prototype for a business process language tool.
However, if I create a new connection and clicked on the source, a line
is being displayed from (0,0) to approx. (200,200). However, there is no
connection preview when I move the mouse to possible targets. After
choosing the target, the spurious line disappears and the connection is
drawn as expected.
I searched in the sources for the Shapes and Workflow examples but I
cannot find my mistake, although I'm pretty sure that this is a very
minor (= stupid) one.
Has anyone an idea or can drop me a link to a solution?

Thanks in advance

Daniel Lübke
Re: Drawing error while creating a new Connection [message #167751 is a reply to message #167725] Thu, 10 February 2005 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a result of not implementing half of the NodeEditPart interface.

"Daniel Luebke" <daniel.luebke@inf.uni-hannover.de> escreveu na mensagem
news:cufrd0$pjh$1@www.eclipse.org...
> Hi,
>
> I'm just learning GEF development and took the Shapes example in order to
> learn it and did a prototype for a business process language tool.
> However, if I create a new connection and clicked on the source, a line is
> being displayed from (0,0) to approx. (200,200). However, there is no
> connection preview when I move the mouse to possible targets. After
> choosing the target, the spurious line disappears and the connection is
> drawn as expected.
> I searched in the sources for the Shapes and Workflow examples but I
> cannot find my mistake, although I'm pretty sure that this is a very minor
> (= stupid) one.
> Has anyone an idea or can drop me a link to a solution?
>
> Thanks in advance
>
> Daniel L
Re: Drawing error while creating a new Connection [message #167821 is a reply to message #167751] Fri, 11 February 2005 10:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.luebke.inf.uni-hannover.de

Randy Hudson wrote:
> This is a result of not implementing half of the NodeEditPart interface.

It was result of implementing the NodeEditPart interface for the wrong
EditPart... As a said, stupid one :-)

Thanks for the answer!

Daniel Lübke
Re: Drawing error while creating a new Connection [message #167858 is a reply to message #167821] Fri, 11 February 2005 16:54 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Daniel Luebke wrote:
> Randy Hudson wrote:
>
>> This is a result of not implementing half of the NodeEditPart interface.
>
>
> It was result of implementing the NodeEditPart interface for the wrong
> EditPart... As a said, stupid one :-)
>
> Thanks for the answer!
>
> Daniel Lübke

Yes, I have made this mistake or some kind of similar mistake when I
started with nodes.

CL
Previous Topic:Layer needed
Next Topic:EMF enum property editor
Goto Forum:
  


Current Time: Thu Apr 25 09:49:24 GMT 2024

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

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

Back to the top