Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » visual feedback during connection creation
visual feedback during connection creation [message #153576] Mon, 11 October 2004 12:41 Go to next message
Eclipse UserFriend
Originally posted by: jojo.virtutech.se

Hi!

I'm trying to implement a simple editor similar to the Shapes example, but
when I add connections between objects, the visual feedback only consists
of a static line drawn from 0,0 to, say 100,100 -- it doesn't move with the
mouse cursor. Apart from that, connections are created nicely, its just the
visual feedback which is broken.

I've tried looking around the source code to the shapes example, but I
can't find anything which looks like something I forgot to implement. Any
clues?

--
/Jesper
Re: visual feedback during connection creation [message #153596 is a reply to message #153576] Mon, 11 October 2004 15:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You are not implementing the NodeEditPart interface completely.

"Jesper Eskilson" <jojo@virtutech.se> wrote in message
news:u67k6txig0r.fsf@morpheus.hq.vtech...
>
> Hi!
>
> I'm trying to implement a simple editor similar to the Shapes example, but
> when I add connections between objects, the visual feedback only consists
> of a static line drawn from 0,0 to, say 100,100 -- it doesn't move with
the
> mouse cursor. Apart from that, connections are created nicely, its just
the
> visual feedback which is broken.
>
> I've tried looking around the source code to the shapes example, but I
> can't find anything which looks like something I forgot to implement. Any
> clues?
>
> --
> /Jesper
Re: visual feedback during connection creation [message #153723 is a reply to message #153596] Tue, 12 October 2004 08:31 Go to previous message
Eclipse UserFriend
Originally posted by: jojo.virtutech.se

"Randy Hudson" <none@us.ibm.com> writes:

> You are not implementing the NodeEditPart interface completely.

I thought I was -- the methods were all there. But I forgot to add
"implements NodeEditPart" to the class declaration.

Thanks!

--
/Jesper
Previous Topic:directedit and connection
Next Topic:Extension of FanRouter to reroute inverse connections
Goto Forum:
  


Current Time: Thu Apr 25 04:08:40 GMT 2024

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

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

Back to the top